Get cURL curl_getinfo data
int $option Option to retrieve. Pass null to retrieve all data as an array.:
array|mixed
public function getInfo($option = null) {
if (!is_resource($this->handle)) {
return null;
}
if (null !== $option) {
return curl_getinfo($this->handle, $option) ?: null;
}
return curl_getinfo($this->handle) ?: array();
}