Zend Framework

Get the Handle Ressource from Zend_Http_Client_Adapter_Curl

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Http_Client
  • Labels:
    None

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

Activity

Hide
Benjamin Eberlei added a comment -

Added a method getHandle() on the cURL Adapter, which returns the current handle.

Show
Benjamin Eberlei added a comment - Added a method getHandle() on the cURL Adapter, which returns the current handle.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: