From: Operating system: Debian Squeeze PHP version: Irrelevant Package: cURL related Bug Type: Bug Bug description:CURL_HTTP_VERSION_1_0 bypassed when using CURLINFO_HEADER_OUT
Description: ------------ When using the CURLINFO_HEADER_OUT option HTTP version option seem to be bypassed (1.1 is forced) Test script: --------------- // ... curl_setopt($curlSession, CURLINFO_HEADER_OUT, true); // Mark as HTTP request curl_setopt($curlSession, CURL_HTTP_VERSION_1_0, true); // ... // Send the request $response = curl_exec($curlSession); $request = curl_getinfo($curlSession, CURLINFO_HEADER_OUT); echo $request Expected result: ---------------- // kind of GET /rest.php?wsid=boxbilling&method=sayHello&name=Declercq%20Lau%3Frent HTTP/1.0 Accept: */* X-Requested-With: RestHttpRequest Host: imscp.i-mscp.net Connection: close Accept-encoding: identity User-Agent: iMSCP_Rest_Client Authorization: Basic YWRtaW4xOmFkbWluMQ== Actual result: -------------- GET /rest.php?wsid=boxbilling&method=sayHello&name=Declercq%20Lau%3Frent HTTP/1.1 Accept: */* X-Requested-With: RestHttpRequest Host: imscp.i-mscp.net Connection: close Accept-encoding: identity User-Agent: iMSCP_Rest_Client Authorization: Basic YWRtaW4xOmFkbWluMQ== -- Edit bug report at https://bugs.php.net/bug.php?id=61346&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61346&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61346&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61346&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61346&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61346&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61346&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61346&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61346&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61346&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61346&r=support Expected behavior: https://bugs.php.net/fix.php?id=61346&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61346&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61346&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61346&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61346&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61346&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61346&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61346&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61346&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61346&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61346&r=mysqlcfg