I'm trying to use the PUT method with the Zend Http Client but I'm unable to add parameters to the request.
Here's my code snippet:
$client = new Zend_Http_Client($this->url);
$client->setAuth($this->username, $this->password, Zend_Http_Client::AUTH_BASIC);
$client->setParameterPut('fruit',$var);
$result = $client->request('PUT');
$data = $result->getBody();
I have already declared "url", "username", "password" and "var" previously in the code.