From: pwr at mail dot ru Operating system: Debian 3.1 (2.4.27-2) PHP version: 4.4.2 PHP Bug Type: cURL related Bug description: POST does not pass
Description: ------------ I badly speak in English, but I shall try to tell about the problem more clearly. For the beginning I shall show you the simple working program on PHP and I shall tell in what a problem. This program it is remarkable works in the version cURL 7.11, but does not work in versions 7.15.1 and 7.15.2. Why it does not work? In what which I have shown uniqueness of a code to you? In a code which I have shown you variables POST are transferred in one inquiry some times with different to values of variables. An example: "a=1&b=5&a=3" On some systems such it is possible. And some programmers use it. And I have remained without means to study work their web of programs. Return please an opportunity of processing repeating POST inquiries. I shall wait for a prompt reply. Reproduce code: --------------- <? $url = "http://www.yamaha-motor.co.jp/parts-search/callSelPartsList.jsp"; $post_data="product_id=13&isStockDisp=true&groupId=2&modelname=BR250T&nickname=&modelYear=1992&modelType=89D1&colorType=A&colorName=%D4%CF%CA+%CC%DE%D7%C2%B8&comment=&serialNo=010&salesYM=199110&colorCode=0033&bc_search_type=21&bc_vin_no=&bc_prefix_no=&bc_serial_no=&bc_model_type=&bc_product_seq=&bc_color_type=&bc_model_year=&bc_series_name=BR&bc_nick_name=&bc_model_name=&bc_model_pet_name=&bc_displacement=&bc_cycle_2_4=&bc_horse_power=&bc_parts_no_0=&bc_parts_no_1=&bc_parts_no_2=&bc_parts_no_3=&bc_parts_no_4=&bc_parts_no_5=&bc_parts_no_6=&bc_parts_no_7=&bc_parts_no_8=&bc_parts_no_9=&isOneColumn=&bc_kosuu_0=&bc_kosuu_1=&bc_kosuu_2=&bc_kosuu_3=&bc_kosuu_4=&bc_kosuu_5=&bc_kosuu_6=&bc_kosuu_7=&bc_kosuu_8=&bc_kosuu_9=&bc_search_kind=1&p003_page_num=1&CatalIndex=++1&curfigName=CYLINDER&bc_fig_name=CYLINDER&figNo=++1&refNo=+1&partsNo=94702-00195&partsname=PLUG%2C+SPARK+%28NGK+BR8HS%29&applyStart=&applyEnd=&newsFileName=&newsPageF=&newsPageT=&rnumber1=1&rnumber2=2&remarks1=&remarks! 2=&kosuu=1&figNo=++1&refNo=+2&partsNo=8R4-11311-02&partsname=CYLINDER+1&applyStart=&applyEnd=&newsFileName=&newsPageF=&newsPageT=&rnumber1=1&rnumber2=2&remarks1=&remarks2=&kosuu=1&figNo=++1&refNo=+3&partsNo=8R4-11351-04&partsname=GASKET%2C+CYLINDER&applyStart=&applyEnd=&newsFileName=&newsPageF=&newsPageT=&rnumber1=1&rnumber2=2&remarks1=&remarks2=&kosuu=1&figNo=++1&refNo=+4&partsNo=95811-08035&partsname=BOLT%2C+FLANGE&applyStart=&applyEnd=&newsFileName=&newsPageF=&newsPageT=&rnumber1=1&rnumber2=2&remarks1=&remarks2=&kosuu=4"; $header=array("Accept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,application/x-shockwave-flash,application/vnd.ms-excel,application/msword,*/*", "Referer:http://www.yamaha-motor.co.jp/parts-search/callSelPartsList.jsp", "Accept-Language: ru", "Content-Type: application/x-www-form-urlencoded", "User-Agent: Mozilla/4.0"); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "$post_data"); curl_setopt ($ch, CURLOPT_HTTPHEADER, $header); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_TIMEOUT, 3600); $result = curl_exec($ch); $error = curl_error($ch); curl_close($ch); ?> Expected result: ---------------- html the document generated by a server Actual result: -------------- Lag of a script and output after CURLOPT_TIMEOUT=3600 -- Edit bug report at http://bugs.php.net/?id=36660&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36660&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36660&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36660&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36660&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36660&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36660&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36660&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36660&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36660&r=support Expected behavior: http://bugs.php.net/fix.php?id=36660&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36660&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36660&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36660&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36660&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36660&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36660&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36660&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36660&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36660&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36660&r=mysqlcfg