Posted By:
Anand_Sundaramurthy
Posted On:
Wednesday, September 26, 2007 08:16 AM
Hi, Am trying to open an URL through java code and read the contents of the html page.sometimes my code runs perfectly but sometimes when i try to open the url am getting the following error. java.io.IOException: Error writing to server at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:416) at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:428) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934) at java.net.URL.openStream(URL.java:1007) at ReadHtml1.openURL(ReadHtml1.java:54) at ReadHtml1. (ReadHtml1.java:25) at ReadHtml1.main(ReadHtml1.java:34)
More>>
Hi,
Am trying to open an URL through java code and read the contents of the html page.sometimes my code runs perfectly but sometimes when i try to open the url am getting the following error.
java.io.IOException: Error writing to server
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:416)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:428)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
at java.net.URL.openStream(URL.java:1007)
at ReadHtml1.openURL(ReadHtml1.java:54)
at ReadHtml1.
(ReadHtml1.java:25)
at ReadHtml1.main(ReadHtml1.java:34)
some information to solve this issue is appreciated.
thanks,
<<Less