Lines Matching refs:redirects
67 public $redirects = 0;
72 public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false, $curl_options = [])
123 // Use the updated url provided by curl_getinfo after any redirects.
134 if ((in_array($this->status_code, [300, 301, 302, 303, 307]) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects) {
135 $this->redirects++;
138 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options);
199 if ((in_array($this->status_code, [300, 301, 302, 303, 307]) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects) {
200 $this->redirects++;
203 $this->__construct($location, $timeout, $redirects, $headers, $useragent, $force_fsockopen, $curl_options);