This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Description
As described in the curl repo, libcurl prior to 7.30 has a problem correctly determining the header length when a proxy server was involved.
This can lead to problems removing the Transfer-Encoding header.
Other notable projects had similar issues:
This can be worked around by
- separating headers and body by
\r\n\r\n (a blank line) and using the resulting parts
- calculating the header length differently, cp.
$pos = strlen($raw) - curl_getinfo($curl, CURLINFO_SIZE_DOWNLOAD);
or, alternatively, the incompatibility should be documented.