Heh - will thank YOU - and Oleg. I didn't realize that DNS lookups
sometimes don't even work without the proxy settings in place! I feel
silly for my first email! :-)
yours,
Julius
On Fri, 2006-22-09 at 07:40 +0200, Ing. Jiří Nejedlý wrote:
> Many thanks, that was the problem.
> After I addded
>
> HttpClient client = new HttpClient();
>
> HostConfiguration hcfg = new HostConfiguration();
> hcfg.setProxy("x.x.x.x", port);
> client.setHostConfiguration(hcfg);
>
>
> , everything is OK.
>
> Thanks again.
>
> > ------------ Recent mesasage ------------
> > Od: Oleg Kalnichevski <[EMAIL PROTECTED]>
> > Předmět: Re: Stuck at the start - HTTPClientTutorial won't work
> > Datum: 21.9.2006 17:56:57
> > ----------------------------------------
> > 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]
>
--
Julius Davies
Senior Application Developer, Technology Services
Credit Union Central of British Columbia
http://www.cucbc.com/
Tel: 416-652-0183
Cel: 647-232-7571
1441 Creekside Drive
Vancouver, BC
Canada
V6J 4S7
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]