cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
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
transfer.

> Would libcurl reset the TCP connection?

It would close the TCP connection since it wouldn't be reliable for future
re-use.

> 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.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-10-26