Valzara
06-21-2005, 02:06 PM
Hi all,
I am developing a web browser with filter function in it, where the browser will bann some specified website, like porn site.
I took this example :
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4837&lngWId=2
as my base web browser.
After I compile it, it cannot detect the website. So I edit the 'back' button of this browser, where the 'back' button will lead to http://www.google.com, but after I done it, it simply shows that it cannot retrieve the website. Below is what it shows:
java.net.UnknownHostException: www.google.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272).... .... and lots more
What's wrong with it!? Please help me!!! This is my project, if I fail it means I gotta flunk my subject also, please help me !!!
I am developing a web browser with filter function in it, where the browser will bann some specified website, like porn site.
I took this example :
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4837&lngWId=2
as my base web browser.
After I compile it, it cannot detect the website. So I edit the 'back' button of this browser, where the 'back' button will lead to http://www.google.com, but after I done it, it simply shows that it cannot retrieve the website. Below is what it shows:
java.net.UnknownHostException: www.google.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272).... .... and lots more
What's wrong with it!? Please help me!!! This is my project, if I fail it means I gotta flunk my subject also, please help me !!!