lithium\net\socket\Curl::read()
Implements
lithium\net\Socket::read()
Reads data from the curl connection.
The read method will utilize the curl options that have been set.
Returns
mixedBoolean false if the resource handle is unavailable, and the result
of curl_exec otherwise.
Links
Source
public function read() {
if (!is_resource($this->_resource)) {
return false;
}
return curl_exec($this->_resource);
}