I use NetBeans both at work and at home, v7.0.1. Recently, I developed a small program to read web page and list out the html code to System.out. Simple HttpURLConnection coding, with own coding (byte-by-byte reading) to parse. It works fine in my office, but not at home! In the office, the whole html code is listed. At home, it stopped in the middle with socket reset. Trace debugged the coding, tested with different web site, but all ended up stopping after reading about 10K to 16K bytes. Web page smaller than this works fine even at home. I am just wondering whether it is possible that my ISP has policy limiting web access with self-coded web client. Anybody encountered similar problem with their ISP?
After many many testing, I found that if I use "myConn.getInputStream().read()" I have 100% chances hitting the problem. If I use "myConn.getInputStream().read(byteArray, offset, length)" the chance reduced to 10%. Again either way works in the office, but only the later works at home. Anybody has any ideas whether this related to java setting or windows setting or network settiing?
After many many testing, I found that if I use "myConn.getInputStream().read()" I have 100% chances hitting the problem. If I use "myConn.getInputStream().read(byteArray, offset, length)" the chance reduced to 10%. Again either way works in the office, but only the later works at home. Anybody has any ideas whether this related to java setting or windows setting or network settiing?