Re: SPNEGO/Kerberos Auth when POST is first request

2014-08-01 Thread Oleg Kalnichevski
On Thu, 2014-07-31 at 12:32 -0700, Gregory Chanan wrote: > Thanks once again Oleg, I will investigate. > > FWIW, do you think something like this (or at least making it easier to > implement without duplicating a bunch of code) would be a useful addition > to httpclient? Hi Greg. HttpClient h

Re: SPNEGO/Kerberos Auth when POST is first request

2014-07-31 Thread Gregory Chanan
Thanks once again Oleg, I will investigate. FWIW, do you think something like this (or at least making it easier to implement without duplicating a bunch of code) would be a useful addition to httpclient? As it stands, what I implemented at the application level (sending GET before POST/PUT) only

Re: SPNEGO/Kerberos Auth when POST is first request

2014-07-30 Thread Oleg Kalnichevski
On Tue, 2014-07-29 at 15:21 -0700, Gregory Chanan wrote: > Hi Oleg, > > I tried using tunnelTarget with the 4.2.x APIs, but it doesn't seem to be > called during normal execution, perhaps it is only called when a proxy is > enabled. > > Using the 4.3.x APIs I was able to see routeComplete being c

Re: SPNEGO/Kerberos Auth when POST is first request

2014-07-29 Thread Gregory Chanan
Hi Oleg, I tried using tunnelTarget with the 4.2.x APIs, but it doesn't seem to be called during normal execution, perhaps it is only called when a proxy is enabled. Using the 4.3.x APIs I was able to see routeComplete being called when I expect it. However, my attempts to generate a GET at this

Re: SPNEGO/Kerberos Auth when POST is first request

2014-07-23 Thread Oleg Kalnichevski
On Tue, 2014-07-22 at 17:13 -0700, Gregory Chanan wrote: > Thanks, Oleg. > > Just to check, why would it not work for me to override > ManagedClientConnection.tunnelTarget ( > http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ManagedClientConnection.html#tunnelT

Re: SPNEGO/Kerberos Auth when POST is first request

2014-07-22 Thread Gregory Chanan
Thanks, Oleg. Just to check, why would it not work for me to override ManagedClientConnection.tunnelTarget ( http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ManagedClientConnection.html#tunnelTarget(boolean, org.apache.http.params.HttpParams) in 4.2.x? The do

Re: SPNEGO/Kerberos Auth when POST is first request

2014-05-20 Thread Oleg Kalnichevski
On Mon, 2014-05-19 at 14:47 -0700, Gregory Chanan wrote: > Hi Oleg, > > Thanks, that makes sense. Any equivalent for httpclient 4.2.5? I use both > 4.2.5 and 4.3.3. > Unfortunately 4.2 APIs do not provide an equivalent method. Oleg > Thanks, > Greg > > > On Wed, May 14, 2014 at 4:10 AM, Ol

Re: SPNEGO/Kerberos Auth when POST is first request

2014-05-19 Thread Gregory Chanan
Hi Oleg, Thanks, that makes sense. Any equivalent for httpclient 4.2.5? I use both 4.2.5 and 4.3.3. Thanks, Greg On Wed, May 14, 2014 at 4:10 AM, Oleg Kalnichevski wrote: > On Tue, 2014-05-13 at 17:05 -0700, Gregory Chanan wrote: > > I'm using httpclient (4.3.3) in my application with SPNEG

Re: SPNEGO/Kerberos Auth when POST is first request

2014-05-14 Thread Oleg Kalnichevski
On Tue, 2014-05-13 at 17:05 -0700, Gregory Chanan wrote: > I'm using httpclient (4.3.3) in my application with SPNEGO/Kerberos Auth > and everything works well when a GET is the first request to a remote > host. This is consistent with > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/

SPNEGO/Kerberos Auth when POST is first request

2014-05-13 Thread Gregory Chanan
I'm using httpclient (4.3.3) in my application with SPNEGO/Kerberos Auth and everything works well when a GET is the first request to a remote host. This is consistent with http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html#spnegowhich only discusses SPNEGO with GET.