On Thu, 2006-09-21 at 16:39 +0200, Ing. Jiří Nejedlý wrote: > Hi, > I cannot make HTTPClientTutorial work. I use Oracle's JDeveloper 10.1.2. I > added these libraries into my project - commons-codec-1.3.jar, > commons-httpclient-3.0.1.jar, commons-logging-1.1.jar, but it still gives me > this error: > > Fatal transport error: www.apache.org > > java.net.UnknownHostException: www.apache.org > ... > > I am behind proxy but JDeveloper at runtime generates automatically these > parameters for me. > -Dhttp.proxyHost=... -Dhttp.proxyPort=... > > So what else could be wrong ? Thanks. >
Jiří, HttpClient does not take into consideration http.proxyHost and http.proxyPort system properties. You have to make sure that proxy properties are correctly set up in the HostConfiguration your client is using http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HostConfiguration.html Hope this helps Oleg > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
