Re: Posting XML over authenticated connection using SSL

2004-05-25 Thread Lee Francis Wilhelmsen
Just like to thank everyone that helped me with the trouble I was having with the http client. Everything worked out ok in the end. Regards Lee Francis Wilhelmsen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Andre-John Mas
resend the reequest a second time in response to a challenge. Andre -Original Message- From: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 9:16 AM To: Commons HttpClient Project Subject: RE: Posting XML over authenticated connection using SSL Lee Francis, Now

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Kalnichevski, Oleg
From: Lee Francis Wilhelmsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 15:03 To: Commons HttpClient Project Subject: RE: Posting XML over authenticated connection using SSL > Since you appear to be passing a custom HttpState object to the > HttpClient#executeMethod these lines o

Re: Posting XML over authenticated connection using SSL

2004-05-18 Thread Michael Becke
I think the problem is that the realm is being specified. Trying using null as the realm: httpState.setCredentials(null, "somehost", creds); Mike Lee Francis Wilhelmsen wrote: Since you appear to be passing a custom HttpState object to the HttpClient#executeMethod these lines of code have no ef

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Lee Francis Wilhelmsen
Since you appear to be passing a custom HttpState object to the HttpClient#executeMethod these lines of code have no effect of what so ever on the method's execution client.getState().setAuthenticationPreemptive(true); client.getState().setCredentials(realm, host, upc); > Try this instead httpSta

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Kalnichevski, Oleg
19 To: Commons HttpClient Project Subject: Re: Posting XML over authenticated connection using SSL >> - The server responds saying not authorized with a realm value >> - HTTP Client then resends the post using the credentitals >> I have supplied (why doesn't it do this the

Re: Posting XML over authenticated connection using SSL

2004-05-18 Thread Lee Francis Wilhelmsen
- The server responds saying not authorized with a realm value - HTTP Client then resends the post using the credentitals I have supplied (why doesn't it do this the first time?) This is the standard behaviour. You can enable preemtive authentication. Ok, so I found a setAuthenticationPreemptive(

Re: Posting XML over authenticated connection using SSL

2004-05-18 Thread Ortwin Glück
Lee Francis Wilhelmsen wrote: I can't find anything in the HTTP client API. I've been looking for an setPreemtiveAuthentication(boolean) method. I guess it's not that easy... how can I set preemtive authentication? even Google knows: http://www.google.com/search?hl=de&ie=UTF-8&q=site%3Ajakarta.apa

Re: Posting XML over authenticated connection using SSL

2004-05-18 Thread Lee Francis Wilhelmsen
- HTTP Client then resends the post using the credentitals I have supplied (why doesn't it do this the first time?) This is the standard behaviour. You can enable preemtive authentication. I can't find anything in the HTTP client API. I've been looking for an setPreemtiveAuthentication(boolean) m

Re: Posting XML over authenticated connection using SSL

2004-05-14 Thread Ortwin Glück
Kalnichevski, Oleg wrote: I agree with Odi that incorrect Content-Length value appears to be the culprit. I suggest you also file a bug report with IBM. Not setting the content length correctly is a really gross violation of the HTTP 1.1 Protocol. It makes reusing the same connection completely

RE: Posting XML over authenticated connection using SSL

2004-05-14 Thread Kalnichevski, Oleg
ailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 14:42 To: Commons HttpClient Project Subject: Re: Posting XML over authenticated connection using SSL Lee Francis Wilhelmsen wrote: > - The server responds saying not authorized with a realm value > - HTTP Client then resends the post using

Re: Posting XML over authenticated connection using SSL

2004-05-14 Thread Michael Becke
Hi Lee, I believe the problem is that method.releaseConnection() is being called incorrectly. releaseConnection() must be called after every client.executeMethod(method). Mike On May 14, 2004, at 8:24 AM, Lee Francis Wilhelmsen wrote: Hi This is my first posting to this list although I've

Re: Posting XML over authenticated connection using SSL

2004-05-14 Thread Ortwin Glück
Lee Francis Wilhelmsen wrote: - The server responds saying not authorized with a realm value - HTTP Client then resends the post using the credentitals I have supplied (why doesn't it do this the first time?) This is the standard behaviour. You can enable preemtive authentication. org.apache.c