public function CurlHandle::getInfo

Get cURL curl_getinfo data

Parameters

int $option Option to retrieve. Pass null to retrieve all data as an array.:

Return value

array|mixed

1 call to CurlHandle::getInfo()
CurlHandle::updateRequestFromTransfer in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlHandle.php
Update a request based on the log messages of the CurlHandle

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlHandle.php, line 326

Class

CurlHandle
Immutable wrapper for a cURL handle

Namespace

Guzzle\Http\Curl

Code

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();
}