Red Hat Bugzilla – Bug 1161163
Response headers added by proxy servers missing in CURLINFO_HEADER_SIZE
Last modified: 2015-07-22 01:44:06 EDT
Description of problem: Sourceforge bug id -> #1204 -> http://sourceforge.net/p/curl/bugs/1204/ ### See https://github.com/bagder/curl/pull/60 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. 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. ### Version-Release number of selected component in my case: # rpm -qa |grep curl curl-7.19.7-37.el6_5.3.x86_64 libcurl-7.19.7-37.el6_5.3.x86_64 [...] # curl --version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 [...] How reproducible: Use curl to connect to URL through proxy server.
Thank you for reporting the bug! upstream commit: https://github.com/bagder/curl/commit/bc6037ed
Hi, is there any plan when QA will be processed/finished? Our customer is facing this problem and would really like to have this problem fixed. ;) Thanks and kind regards Stefan
Hi Stefan, this bug is approved to be fixed in the RHEL 6.7 update. Please contact Product Support if you need an accelerated fix for the issue.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1254.html