ZF-2467: Multiple function calls performs invalid requests
Description
Sending more requests after each other produces wrong requests on the remote server.
$client = new Zend_Rest_Client('http://127.0.0.1/rest.php'); $res = $client->add(0,0,0,0,0,0)->get(); var_dump($res);
$client = new Zend_Rest_Client('http://127.0.0.1/rest.php'); $res = $client->find(16)->get(); var_dump($res);
GET /rest.php?method=add&arg0=0&arg1=0&arg2=0&arg3=0&arg4=0&arg5=0&rest=1 HTTP/1.1" 200 175 "-" "Zend_Http_Client" GET /rest.php?find=16&arg1=16&rest=1 HTTP/1.1" 404 202 "-" "Zend_Http_Client"
As you can see, the 2nd request is incorrect, and contains no "method" argument, resulting in an error from the server.
Comments
Posted by Tom Sommer (tomsommer) on 2008-01-23T06:39:24.000+0000
Related to ZF-1853
Posted by Wil Sinclair (wil) on 2008-02-20T15:53:50.000+0000
Unsetting priority and assigning to Davey for review. Davey, please assign priority for 1.5 release.
Posted by Herbert G. Fischer (hgfischer) on 2008-06-04T11:47:05.000+0000
Looks like issues ZF-2467, ZF-2215, ZF-2044 are all related to this problem.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-10-20T06:09:36.000+0000
I will be happy if you see and comment on ZF-2215.