From:             josh at trash-mail dot com
Operating system: 
PHP version:      5.4.10
Package:          cURL related
Bug Type:         Bug
Bug description:incorrect CURLINFO_HEADER_SIZE for proxied connections

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 bug report at https://bugs.php.net/bug.php?id=63894&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63894&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63894&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63894&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63894&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63894&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63894&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63894&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63894&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63894&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63894&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63894&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63894&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63894&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63894&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63894&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63894&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63894&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63894&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63894&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63894&r=mysqlcfg

Reply via email to