commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@wamu.net>
Subject RE: [httpclient] SOAP req with SSL, proxy auth, and basic authdoesn't send basic auth or SOAPAction headers
Date Thu, 17 Aug 2006 13:23:57 GMT
Thinking about this a little more, I can see that setting preemptive
auth fixes my problem, but why did I need to do that? 

> -----Original Message-----
> From: Oleg Kalnichevski [mailto:olegk@apache.org] 
> Sent: Wednesday, August 16, 2006 3:05 PM
> To: Jakarta Commons Users List
> Subject: Re: [httpclient] SOAP req with SSL, proxy auth, and 
> basic authdoesn't send basic auth or SOAPAction headers
> 
> On Wed, 2006-08-16 at 14:27 -0700, Karr, David wrote:
> > I have a standalone tool using SAAJ/SOAPConnection that I 
> use to send 
> > a web service request to an external provider, through SSL, with 
> > proxy-auth and basic-auth.  This works fine.  When I use 
> Ethereal to 
> > monitor the protocol, I see the initial HTTP packet sending the 
> > Proxy-Authorization, Authorization, User-Agent, and 
> SOAPAction headers 
> > (the last is set manually in my code), along with some other 
> > miscellaneous headers.
> > 
> > I'm now working on an implementation (sending the same 
> message) using 
> > commons-httpclient-3.0rc3, in WebLogic 8.1.4, with JDK 
> 1.4.2.  What I 
> > find through Ethereal is that the first HTTP packet sends the 
> > User-Agent, followed by a 407 (proxy auth required) 
> response, followed 
> > by an HTTP packet sending the proxy-authorization header.  
> I never see 
> > it send the Authorization header (basic) or the SOAPAction header 
> > (manually set by my code).
> > 
> > I'm using "client.getState().setProxyCredentials()" and 
> > "client.getState().setCredentials()" to set the auth and proxy-auth 
> > data.  I'm using "postMethod.addRequestHeader()" to add the 
> SOAPAction 
> > header.
> > 
> > What could I do to get more information about what is going 
> wrong, or 
> > fix the problem in the first place?
> > 
> 
> David,
> 
> Please take a look at the HttpClient logging guide [1] and 
> authentication guide [2]. 
> 
> Most likely you might want to enable preemptive 
> authentication in order to make sure HttpClient sends user 
> credentials preemptively before being challenged by the 
> target or proxy servers.
> 
> Oleg
> 
> [1] http://jakarta.apache.org/commons/httpclient/logging.html
> [2] http://jakarta.apache.org/commons/httpclient/authentication.html
> 
> 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> commons-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message