ZF-7040: Get the Handle Ressource from Zend_Http_Client_Adapter_Curl
Description
In order to use curl method like curl_getinfo, curl_error and curl_errno, I think it would be great to add this method to the Zend_Http_Client_Adapter_Curl class
public function getHandleRessource()
{
return $this->_curl;
}
or directly multiple methods
public function getInfo()
{
return curl_getinfo($this->_curl);
}
public function getError()
{
return curl_error($this->_curl);
}
public function getErrno()
{
return curl_errno($this->_curl);
}
Thanks
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-07-05T02:53:13.000+0000
Added a method getHandle() on the cURL Adapter, which returns the current handle.