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" <[EMAIL PROTECTED]> To: "Commons HttpClient Project" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > ____________________________________________________________ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]