hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Yu" <ak...@rogers.com>
Subject RE: https proxy authentication error
Date Mon, 08 May 2006 14:10:50 GMT
Is there a reason why the fix for 38818 does not make into 3.0.1?
I am eagerly waiting for the fix to be in an official build.
 

-----Original Message-----
From: Alan Yu [mailto:akwyu@rogers.com] 
Sent: March 4, 2006 9:35 AM
To: 'HttpClient User Discussion'
Subject: RE: https proxy authentication error

When will the fix be available?
I don't see the change in
http://svn.apache.org/builds/jakarta-commons/nightly/commons-httpclient/comm
ons-httpclient-src-20060304.zip

Alan 

-----Original Message-----
From: Alan Yu [mailto:akwyu@rogers.com]
Sent: March 2, 2006 11:41 AM
To: 'HttpClient User Discussion'
Subject: RE: https proxy authentication error

I find out that if I use a MultiThreadedHttpConnectionManager, the second
executeMethod can return 200 for https site.
I hope this will give you extra information for your fix.

Alan


-----Original Message-----
From: Oleg Kalnichevski [mailto:olegk@apache.org]
Sent: March 1, 2006 5:38 PM
To: HttpClient User Discussion
Subject: RE: https proxy authentication error

On Wed, 2006-03-01 at 17:14 -0500, Alan Yu wrote:
> What I don't understand is if I run the same code against the http 
> port 8080 on the same proxy server with URL http://www.verisign.com/, 
> the second executeMethod can return 200 OK.
> 
> Does preemptive authentication have anything to do with whether the 
> app is using http or https?
> 
> 
> Alan
> 
> 

Alan,
You are likely to have run into the same problem as the one reported
here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38818

I'll post a fix tomorrow

Oleg


> -----Original Message-----
> From: Roland Weber [mailto:http-async@dubioso.net]
> Sent: March 1, 2006 12:48 PM
> To: HttpClient User Discussion
> Subject: Re: https proxy authentication error
> 
> Hi Alan,
> 
> > Why the second executeMethod will still get 407?
> 
> Because you didn't enable preemptive authentication, or any 
> authentication at all for that matter. Please take the time to study 
> our Authentication
> Guide:
> 
> http://jakarta.apache.org/commons/httpclient/authentication.html
> 
> cheers,
>   Roland
> 
> > =================
> > HttpClient httpclient = new HttpClient(); 
> > httpclient.getHostConfiguration().setProxy("some_proxy",
> > 8443);
> > GetMethod httpget = new
> > GetMethod("https://www.verisign.com/");
> > try {
> >     int rc = httpclient.executeMethod(httpget);
> >     switch (rc) {
> >        case
> > HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED:          
> >                                         
> > httpclient.getState().setProxyCredentials(AuthScope.ANY,
> >                        new
> > UsernamePasswordCredentials("some_id",
> > "some_password"));                 
> > 
> >      int rc2 = httpclient.executeMethod(httpget);
> >      System.out.println(rc2);
> >         break;
> >     }
> > } catch (Exception e) {
> >     e.printStackTrace();
> > } finally {
> >     httpget.releaseConnection();
> > }
> > 
> > 
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> > httpclient-user-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> httpclient-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> httpclient-user-help@jakarta.apache.org
> 
> 


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



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



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



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


Mime
View raw message