On Mon, 13 Feb 2012, Prabu RM wrote:

*Issue:* Multiple request methods say HEAD & PUT in a single CURL reusing handle fails and throws errors like below.

<Error><Code>RequestTimeout</Code><Message>Your socket connection to
the server was not read from or written to within the timeout period.

So how long time is it between the invokes? And where is that XML error coming from?

We could see when we use same CURL handle the Content-Length request header added in HEAD request header followed by PUT request. See in attached file. What brings requests headers mess up when using same CURL handle.

First, you really shouldn't set your own Content-Length header as that most often just confuses libcurl and might in fact be a reason for problems you experience. Secondly, resulting in duplicate headers is a bug I believe we already have fixed in later libcurl releases.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to