Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1161182 - Response headers added by proxy servers missing in CURLINFO_HEADER_SIZE
Response headers added by proxy servers missing in CURLINFO_HEADER_SIZE
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: curl (Show other bugs)
7.2
All Linux
unspecified Severity medium
: alpha
: ---
Assigned To: Kamil Dudka
Stefan Kremen
:
Depends On:
Blocks: 1161163
  Show dependency treegraph
 
Reported: 2014-11-06 10:27 EST by Kamil Dudka
Modified: 2015-11-19 02:07 EST (History)
3 users (show)

See Also:
Fixed In Version: curl-7.29.0-24.el7
Doc Type: Bug Fix
Doc Text:
Previously, libcurl returned wrong value of the CURLINFO_HEADER_SIZE field in case a proxy server appended its own headers to the HTTP response. An upstream patch has been applied on libcurl sources to fix calculation of the field. Now the returned value is valid even if proxy headers are appended.
Story Points: ---
Clone Of: 1161163
Environment:
Last Closed: 2015-11-19 02:07:14 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2159 normal SHIPPED_LIVE Moderate: curl security, bug fix, and enhancement update 2015-11-19 03:26:18 EST

  None (edit)
Description Kamil Dudka 2014-11-06 10:27:41 EST
+++ This bug was initially created as a clone of Bug #1161163 +++

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.

--- Additional comment from RHEL Product and Program Management on 2014-11-06 15:50:49 CET ---

Since this bug report was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from Kamil Dudka on 2014-11-06 16:25:18 CET ---

Thank you for reporting the bug!

upstream commit:
https://github.com/bagder/curl/commit/bc6037ed
Comment 7 errata-xmlrpc 2015-11-19 02:07:14 EST
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-2159.html

Note You need to log in before you can comment on or make changes to this bug.