php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36660 POST does not pass
Submitted: 2006-03-09 05:36 UTC Modified: 2006-03-22 01:00 UTC
From: pwr at mail dot ru Assigned:
Status: No Feedback Package: cURL related
PHP Version: 4.4.2 OS: Debian 3.1 (2.4.27-2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pwr at mail dot ru
New email:
PHP Version: OS:

 

 [2006-03-09 05:36 UTC] pwr at mail dot ru
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=&remarks2=&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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-14 21:57 UTC] mike@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


I can't read japanese, but that page seems out of order.

 [2006-03-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC