[Htmlparser-developer] unlimited unconnected status in ConnectionManager.java
Brought to you by:
derrickoswald
From: john wu <wj...@gm...> - 2010-09-21 08:42:14
|
Hello, I met below problem when I used htmlparser. Problem: unlimited try to connect a web site to get the html page, but it failed in openConnection in ConnectionManager.java. Code: if ((3 == (code / 100)) && (repeated < 20)) if (null != (uri = getLocation (http))) { url = new URL (uri); repeat = true; repeated++; } Here if repeated >= 20, then it will always to use the old url. And it will be in unlimited unconnected status. *Am I right?* So I try to modify the code, but the compile failed in mvn install and hint me there are some unexpected characters \65535. I opened it in eclipse and modified it. *Who could tell me what is the problem about it?* Thank you! Br, John Wu |