Often times proxy servers add their own headers (like HTTP/1.0 200 Connection established) to responses on their way back to the client. The size of these headers was not taken into account when calculating CURLINFO_HEADER_SIZE before the change from this pull request.
HTTP/1.0 200 Connection established
The problem can be reproduced quite easily using the test program from https://gist.github.com/mj/5102778. In our case the proxy server at proxy:8080 was the default Squid that ships with Debian stable.
Proxy servers tend to add their own headers at the beginning of
responses. The size of these headers was not taken into account by
CURLINFO_HEADER_SIZE before this change.
Now at https://sourceforge.net/p/curl/bugs/1204/
Thanks, now merged in master!
come on people. please get it fixed.
@bagder This is fixed as of which cURL version?
That fix was commit bc6037e which went into curl 7.30.0