curl-library
Re: patch for unordered body and header in re-authentication
Date: Thu, 24 Apr 2008 11:44:48 +0200 (CEST)
On Thu, 24 Apr 2008, Jari Urpalainen wrote:
> When re-authentication of an http request is being required by the server
> (when a request body exists)
Can you please elaborate? I suspect "re-authentication" refers to Digest auth
here? What libcurl version on what platform is it? Any chance you can provide
some logs or outputs etc that clarifies this effect somewhat more?
> the re-authentication of libcurl responds with the incorrect order, i.e.
> body is written _before_ the header information.
I fail to see how this is even possible. What makes you think this is what
happens?
> Attached a patch which at least WFM. If there's a better way to fix this
> that's fine by me as long as this gets fixed, please ;-).
Yeah, that patch will break other stuff so it's not very good.
> A _better_ fix would certainly include a body in the test153 or add a new
> test with body.
Yeah, a new test for that would be great!
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-04-24