Hi,
I'm a beginner and I'm trying the sample code to connect to a webpage using the ProxyTunnelDemo class from the examples and I always get an error "Unknown Host Exception". Here's the error message. C:\bea\j2sdk1.4.2_06\bin\javaw -classpath "C:\JavaProjects\Http_Client\classes;C:\bea\weblogic81\server\lib\weblog ic.jar;C:\JavaProjects\Http_Client\commons-httpclient-3.0-rc4\commons-ht tpclient-3.0-rc4.jar;C:\JavaProjects\Http_Client\commons-codec-1.3\commo ns-codec-1.3.jar;C:\JavaProjects\Http_Client\commons-logging-1.0.4\commo ns-logging.jar;C:\JavaProjects\Http_Client\commons-logging-1.0.4\commons -logging-api.jar;C:\JavaProjects\Http_Client\junit3.8.1\junit.jar;C:\bea \j2sdk1.4.2_06\jre\javaws\javaws.jar;C:\bea\j2sdk1.4.2_06\jre\lib\charse ts.jar;C:\bea\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar;C:\bea\j2sdk1.4.2_06\j re\lib\ext\ldapsec.jar;C:\bea\j2sdk1.4.2_06\jre\lib\ext\localedata.jar;C :\bea\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar;C:\bea\j2sdk1.4.2_06 \jre\lib\im\indicim.jar;C:\bea\j2sdk1.4.2_06\jre\lib\im\thaiim.jar;C:\be a\j2sdk1.4.2_06\jre\lib\jce.jar;C:\bea\j2sdk1.4.2_06\jre\lib\jsse.jar;C: \bea\j2sdk1.4.2_06\jre\lib\plugin.jar;C:\bea\j2sdk1.4.2_06\jre\lib\rt.ja r;C:\bea\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;C:\bea\j2sdk1.4.2_06\lib\d t.jar;C:\bea\j2sdk1.4.2_06\lib\htmlconverter.jar;C:\bea\j2sdk1.4.2_06\li b\tools.jar" ProxyTunnelDemo java.io.IOException: Stream closed at java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120) at java.io.BufferedInputStream.read(BufferedInputStream.java:270) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengt hInputStream.java:169) at java.io.FilterInputStream.read(FilterInputStream.java:111) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt ream.java:107) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputSt ream.java:126)Connect failed: HTTP/1.0 403 Forbidden at org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodB ase.java:684) at org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(Htt pMethodBase.java:735) at ProxyTunnelDemo.main(ProxyTunnelDemo.java:92) Exception in thread "main" Thanks, Ali. The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.