Joe,
Please help me understand what is exactly the problem. The whole idea of using 
'expect: 100-continue' handshake is to avoid sending request body just to find out 
that access is not authorized. HttpClient will not send the request body unless the 
server acknowledges that it is ok to do so by responding with status code 100. This is 
HTTP spec compliant behaviour. If you do not want 'expect: 100-continue' handshake to 
take place at all, you can disable it by invoking 
ExpectContinueMethod#setUseExpectHeader(boolean)

I hope this helps

Oleg


-----Original Message-----
From: McMahon, Joseph [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 3. April 2003 02:55
To: HTTPCommons (E-mail)
Subject: POST, Expect-100 and 401 Problem


Is there any progress on this problem (it was posted to the newsgroup back
in early Feb.).  I'm running into the same situation where a POST with a
request body is made to an authorizing server.  The initial POST fails for
401, the retry posts all the headers but doesn't appear to repost the
request body data and then terminates returning a 401 error.  If I try to
execute a new POST on that same client connection, it behaves like the
second retry (all headers sent, but no request body).

Any help?

Thanks,
joe


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to