cURL / Mailing Lists / curl-library / Single Mail


Re: curl_multi_info_read() returning result of CURLE_RECV_ERROR [feedly]

From: Daniel Stenberg <>
Date: Mon, 26 Oct 2015 12:23:29 +0100 (CET)

On Mon, 26 Oct 2015, KS Lee wrote:

> In the mean time, I've read previous curl threads concerning​ servers
> returning incorrect CONTENT-LENGTH values in the HTTP headers.
> ​What would libcurl do in such situations if *CURLOUT_IGNORE_CONTENT_LENGTH​
> is not set?

It would return an error (CURLE_PARTIAL_FILE) saying it got a partial

> Would libcurl reset the TCP connection?

It would close the TCP connection since it wouldn't be reliable for future

> What would this be different with an intervening proxy?*

Nothing. libcurl is a client and when it receieves headers + body it doesn't
matter much if that is from a proxy or from the server directly, the headers
have the same meaning.


List admin:
Received on 2015-10-26