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
- 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)
- 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
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
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
: 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
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
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
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.
: 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
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
11 matches
Mail list logo