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

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)

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

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

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

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Kalnichevski, Oleg
: 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 of code have

RE: Posting XML over authenticated connection using SSL

2004-05-18 Thread Andre-John Mas
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 it hit me

Posting XML over authenticated connection using SSL

2004-05-14 Thread Lee Francis Wilhelmsen
Hi This is my first posting to this list although I've been a subscriber for a while now. Anyway, I've been using HTTP client for some time and although it works it also fails too often and I don't know why. I'm using HTTP Client version 2.0 final downloaded a few months back. I'm running on

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.

RE: Posting XML over authenticated connection using SSL

2004-05-14 Thread Kalnichevski, Oleg
: 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 the credentitals I have supplied

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