There is the next code:
$client = new Zend_Rest_Client('http://test.com/rest');
$client->sendData('data');
if i send via GET
(echo $client->get()
) it works correct
if via POST
(echo $client->post()
) i'm getting the next message "No Method Specified."
how to send post using Zend_Rest_Client
?
Maybe this helps:
Below is the link for the
Zend_Rest_Client
Class as it indicates we can use the public methodrestPost()
to perform the post operation.http://www.sourcecodebrowser.com/zend-framework/1.10.3/class_zend_rest_client.html