Hi, I used htmlparser to parse certain web pages. I found some weird thing
about parser's two constructors.
Say, I have a urlString
----------- method 1 ------------
Parser parser = new Parser(urlString);
-------- method 2 ------------
URL url = new URL(urlString);
Parser parser = new Parser(url.openConnection());
These two methods got different page contents for the same urlString.
Anybody knows the reason? What is the difference between those two
constructors?
Thanks
-marcel
|