This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
the program written is working at home but not in college.
the program takes in a URL of a web-page as input. the program is expected to retrieve the content of a web-page which is then further analysed to find the emailids present in that web-page.
the web-pages present on the local hard disk are retrieved properly but when the URL is over Internet ex: http://google.com it is not working.
the college provides us Internet Service through a proxy server. we are working on JDK6.0 kit and Windows XP SP2 Operating System.we are developing this application under eclipse2.0 IDE tool. the college system has Pentium processor and 256MB RAM.
can you please help me in solving this problem?
Proxy Server settings :
method 1) proxy server's address is 22.214.171.124 it is set using setProperty method. proxy server's port is 80
126.96.36.199 java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at URLdemo.getContent(URLdemo.java:29) at URLdemo.main(URLdemo.java:17) IOError!