I am trying to update my record using the PUT method
$client = new Zend_Http_Client();
$client->setMethod(Zend_Http_Client::PUT);
$client->setUri('http://example.com/api/type/');
$client->setParameterPost(array(
'useremail' => '*****@****.***',
'apikey' => 'secretkey',
'expenseid' => '4',
'description' => 'TEST WEB API',
'amount' => '5000.00',
));
However, this does not work. The same applies to Zend_Http_Client :: DELETE . Only Zend_Http_Client :: POST and Zend_Http_Client :: GET seem to work .
What am I missing?
source
share