From:             tony at marston-home dot demon dot co dot uk
Operating system: Windows XP
PHP version:      5.3.1
PHP Bug Type:     cURL related
Bug description:  CURLINFO_HEADER_OUT does not work

Description:
------------
The following line always returns FALSE:

$info = curl_getinfo($ch, CURLINFO_HEADER_OUT);

Reproduce code:
---------------
$request = <<<EOD
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>menu.getAnswer</methodName>
<params/>
</methodCall>

EOD;

$header[] = "Content-type: text/xml";
$header[] = "User-Agent: foobar";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$response = curl_exec($ch);
$info = curl_getinfo($ch, CURLINFO_HEADER_OUT);

Expected result:
----------------
According to the documentation this option has been available since
version 5.1.3, so I expect to see the request headers which were sent out.

Actual result:
--------------
The result is always FALSE.

-- 
Edit bug report at http://bugs.php.net/?id=50459&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50459&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50459&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50459&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50459&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50459&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50459&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50459&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50459&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50459&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50459&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50459&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50459&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50459&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50459&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50459&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50459&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50459&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50459&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50459&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50459&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50459&r=mysqlcfg

Reply via email to