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
