From: info at pcxtra dot nl Operating system: Windows XP PHP version: 5.3.0 PHP Bug Type: cURL related Bug description: CURLOPT_POSTREDIR not implemented
Description: ------------ I'd like to use the CURLOPT_POSTREDIR. When I try to POST data to a page it will return with 302 and CURL will redirect with POST. However I need to configure this to redirect with GET which can be configured with CURLOPT_POSTREDIR which is added in curl 7.19.1. (I'm using PHP 5.3 with Curl 7.19.4) I also tried curl_setopt($ch, 161 , 0); (also tried 1,2 and 3) in the hope it would still work, but it didn't. Reproduce code: --------------- By POSTing something to an URL which returns 302 and the following settings: curl_setopt($ch, CURLOPT_MAXREDIRS, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); It will show with curl_getinfo: [request_header] => POST /Account/MyPortal.aspx HTTP/1.1 Expected result: ---------------- I would have expected (and wanted) [request_header] => GET /Account/MyPortal.aspx HTTP/1.1 -- Edit bug report at http://bugs.php.net/?id=49571&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49571&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49571&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49571&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49571&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49571&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49571&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49571&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49571&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49571&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49571&r=support Expected behavior: http://bugs.php.net/fix.php?id=49571&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49571&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49571&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49571&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49571&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49571&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49571&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49571&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49571&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49571&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49571&r=mysqlcfg