commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Beermann" <>
Subject Re: [HttpClient] Problems with PUT and NTLM
Date Mon, 16 Aug 2004 20:02:36 GMT
A full log is attached. Turning on the expect-continue handshake does indeed 
solve the problem (as seen in log #2). However, I still have a question 
after looking at the logs: I tried putting these two lines one right after 
the other:


...and got back "true", which confuses me completely. Does this not work the 
way I think it does? I'd really like to ditch the wasted Basic: attempts.

--Matthew Beermann

----- Original Message ----- 
From: "Oleg Kalnichevski" <>
To: "Jakarta Commons Users List" <>
Sent: Friday, August 13, 2004 5:11 PM
Subject: Re: [HttpClient] Problems with PUT and NTLM

> Matthew,
> I missed the fact that the server reported a 500 error, which actually
> indicates an internal server error rather than an authentication error.
> Still, the 'expect-continue' handshake may be worth a try
> If Slide exposes the underlying HTTP PUT method you can activate the
> 'expect-continue' handshake by calling
> httpput.setUseExpectHeader(true);
> For details see
> You may also consider testing that HTTP PUT method using just plain
> HttpClient with the wirelog turned on in order to get more details on
> what is going on under the hood
> Hope this helps
> Oleg
> On Fri, 2004-08-13 at 23:45, Matthew Beermann wrote:
>> I'm trying to do a PUT with NTLM turned on, and it fails on a 500
>> error from the server, which in turn causes the console to report a
>> "Unbuffered entity enclosing request can not be repeated" error. Other
>> commands though, like PROPFIND and MKCOL, go through the
>> authentication steps and work perfectly. I've attached a log showing
>> the client/server conversation.
>> OlegK suggested that I should activate the expect-continue handshake
>> on the HttpClient, which might fix my problems, but I'm afraid I
>> cannot figure out for the life of me how to do so. I should mention
>> that I'm working with HttpClient through Slide, and as such, I'm not
>> interfacing with HttpClient directly. (Which is to say, the Slide
>> library is creating PutMethod instances, not me.)
>> --Matthew Beermann
>> ______________________________________________________________________
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

View raw message