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
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
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
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
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
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
- 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(
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
- 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
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
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
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
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
13 matches
Mail list logo