Edit report at https://bugs.php.net/bug.php?id=63894&edit=1
ID: 63894 Updated by: php-bugs@lists.php.net Reported by: josh at trash-mail dot com Summary: incorrect CURLINFO_HEADER_SIZE for proxied connections -Status: Feedback +Status: No Feedback Type: Bug Package: cURL related PHP Version: 5.4.10 Assigned To: pierrick New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-01-04 07:15:43] pierr...@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