From 9006dbf3a0085e9b934932ae49275eb048fe0075 Mon Sep 17 00:00:00 2001 From: Oxicode Date: Wed, 1 Jun 2016 18:22:34 -0500 Subject: [PATCH 1/2] Update Curl.php --- src/Curl/Curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index f4f8911..1ac4e89 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -347,6 +347,7 @@ class Curl $this->curlErrorMessage = curl_error($this->curl); $this->curlError = !($this->curlErrorCode === 0); $this->httpStatusCode = curl_getinfo($this->curl, CURLINFO_HTTP_CODE); + $this->totalTime = curl_getinfo($this->curl, CURLINFO_TOTAL_TIME); $this->httpError = in_array(floor($this->httpStatusCode / 100), array(4, 5)); $this->error = $this->curlError || $this->httpError; $this->errorCode = $this->error ? ($this->curlError ? $this->curlErrorCode : $this->httpStatusCode) : 0; From 2fa41a2521b96636d98259f5699a3b9625d5c28b Mon Sep 17 00:00:00 2001 From: Oxicode Date: Wed, 1 Jun 2016 18:24:08 -0500 Subject: [PATCH 2/2] Update Curl.php --- src/Curl/Curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 1ac4e89..59e0034 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -56,6 +56,7 @@ class Curl public $httpStatusCode = 0; public $httpErrorMessage = null; + public $totalTime = 0; public $baseUrl = null; public $url = null; public $effectiveUrl = null;