[Htmlparser-developer] malformed url
Brought to you by:
derrickoswald
From: Amit R. <ra...@ma...> - 2002-08-05 05:15:19
|
hi, =09trying to parser "www.google.com" gives <<Error! URL www.google.com=20 Malformed!>> on linux. =09if i give "http://www.google.com", it works. 1. is this behaviour expected? =09following code throws exception: =09URL url =3D new URL(resourceLocn); in HTMLParser, method openConnectio= n()=20 bombs. Although API explains why this should bomb but I wanted to know=20 whether this is expected? If not, should we append "http://" to the front. Somik, This is another reason why HTMLParser should throw exception. If you see= =20 HTMLStringFilter example, even though HTMLParser has bombed, there is no = way=20 in which HTMLStringFilter can know it should stop instead it goes on with= =20 rest of its processing. Regards, Amit. |