hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rohit gupta" <rohi...@lycos.com>
Subject RE: HTTP/1.1 407 Proxy authentication required
Date Fri, 05 Dec 2003 12:31:53 GMT
Oleg,
I am using basic authentication type of proxy.
Could you please tell me what is this "complete wire log of the HTTP session". I am relatively
new to this field and appologies for this ignorance.

Warm Regards,
Rohit
--

--------- Original Message ---------

DATE: Fri, 5 Dec 2003 08:23:14 
From: "Kalnichevski, Oleg" <oleg.kalnichevski@bearingpoint.com>
To: "Commons HttpClient Project" <commons-httpclient-dev@jakarta.apache.org>,<rohit_g@lycos.com>
Cc: 

>Rohit,
>What type of proxy are you using? Besides, if I had a look at the complete wire log of
the HTTP session, I would probably be able to tell you more.
>
>Oleg
>
>-----Original Message-----
>From: rohit gupta [mailto:rohit_g@lycos.com]
>Sent: Friday, December 05, 2003 08:44
>To: Commons HttpClient Project
>Subject: HTTP/1.1 407 Proxy authentication required
>
>
>Hello there,
>
>I am exploring HttpClient and its capabilities and I am a newly joined member for this
mailing list.
>
>I am trying to get a resource using HttpClient. My network does have a proxy.
>
>My code looks like following.
>
>HttpClient httpclient = new HttpClient();
>httpclient.getHostConfiguration().setProxy("172.18.1.1", 80);// my proxy details
>httpclient.getState().setProxyCredentials("172.18.1.1",  "172.18.1.1",				new UsernamePasswordCredentials
 userName, pwd));// realms and other detail
>GetMethod httpget = new GetMethod("http://www.google.com/"); 
>httpclient.executeMethod(httpget);
>System.out.println(httpget.getStatusLine().toString());
>
>When i am trying to execute this i am getting following error:
>
>
>Dec 5, 2003 1:01:53 PM org.apache.commons.httpclient.HttpMethodBase processAuthenticationResponse
>INFO: Already tried to authenticate with '172.18.1.1' authentication realm at 172.18.1.1,
but still receiving: HTTP/1.1 407 Proxy authentication required
>HTTP/1.1 407 Proxy authentication required
>
>
>Somebody please let me know the reason and the probable solution.
>
>Warm Regards,
>Rohit
>
>
>
>
>____________________________________________________________
>Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
>http://login.mail.lycos.com/r/referral?aid=27005
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>
>



____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message