mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Merge branch 'master' of github.com-php-curl-class:php-curl-class/php-curl-class
* 'master' of github.com-php-curl-class:php-curl-class/php-curl-class: Update Curl.php Update Curl.php Fix docblock
This commit is contained in:
+2
-2
@@ -56,6 +56,7 @@ class Curl
|
||||
public $httpStatusCode = 0;
|
||||
public $httpErrorMessage = null;
|
||||
|
||||
public $totalTime = 0;
|
||||
public $baseUrl = null;
|
||||
public $url = null;
|
||||
public $effectiveUrl = null;
|
||||
@@ -347,6 +348,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;
|
||||
@@ -782,8 +784,6 @@ class Curl
|
||||
* @access public
|
||||
* @param $key
|
||||
* @param $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function setHeader($key, $value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user