Bug #63894 [NoF->Csd]: incorrect CURLINFO_HEADER_SIZE for proxied connections
| From: | mj@php.net | Date: | Wed, 06 Mar 2013 20:39:55 +0000 |
| Subject: | Bug #63894 [NoF->Csd]: incorrect CURLINFO_HEADER_SIZE for proxied connections | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177631@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63894&edit=1
ID: 63894
Updated by: mj@php.net
Reported by: josh at trash-mail dot com
Summary: incorrect CURLINFO_HEADER_SIZE for proxied
connections
-Status: No Feedback
+Status: Closed
Type: Bug
Package: cURL related
Operating System: irrelevant
PHP Version: 5.4.10
Assigned To: mj
Block user comment: N
Private report: N
New Comment:
This issue actually stems from a bug in libcurl. I have submitted a pull request
for a change to upstream at https://github.com/bagder/curl/pull/60/commits.
There is really not much that can be done within PHP because we are essentially
only passing data back and forth between user-land and cURL. Folks affected by
this simply need to wait for libcurl to be fixed.
Previous Comments:
------------------------------------------------------------------------
[2013-03-06 20:37:20] mj@php.net
Sorry for the mess.
------------------------------------------------------------------------
[2013-03-06 20:34:56] mj@php.net
The LICENSE file has been updated as well. Thanks for your report.
------------------------------------------------------------------------
[2013-02-18 00:36:11] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2013-01-04 07:15:43] pierrick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2013-01-03 16:18:16] josh at trash-mail dot com
Description:
------------
When using CURLOPT_PROXY to connect to an HTTPS resource via an HTTP debugging
proxy (like charles) CURLINFO_HEADER_SIZE incorrectly reports the header size
without any headers that the proxy might have added.
Example #1 (without proxy) reports CURLINFO_HEADER_SIZE 198 (correct):
######
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 03 Jan 2013 15:54:35 GMT
Server: Apache/2.2.22 (Amazon)
X-Powered-By: PHP/5.3.19
Content-Length: 15
Connection: Keep-alive
######
Example #2 (via proxy) reports CURLINFO_HEADER_SIZE 198 (wrong):
######
HTTP/1.0 200 Connection established
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Thu, 03 Jan 2013 15:54:35 GMT
Server: Apache/2.2.22 (Amazon)
X-Powered-By: PHP/5.3.19
Content-Length: 15
Connection: Keep-alive
######
Expected result:
----------------
CURLINFO_HEADER_SIZE should always return the correct size - also when
CURLOPT_PROXY is used with an HTTP proxy to connect an HTTPS resource.
Actual result:
--------------
CURLINFO_HEADER_SIZE returns the wrong size (without counting the additional
headers from the proxy).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63894&edit=1