@@ -35,15 +35,15 @@ discard block |
||
| 35 | 35 | 'timeout_ms' => 'CURLOPT_TIMEOUT_MS', // milliseconds, libcurl version > 7.36.0 , |
| 36 | 36 | ); |
| 37 | 37 | public $curlHandle; |
| 38 | - protected $options = array( |
|
| 39 | - 'CURLOPT_MAXREDIRS' => 10, |
|
| 40 | - 'CURLOPT_IPRESOLVE' => CURL_IPRESOLVE_V4,//IPv4 |
|
| 41 | - 'header' => true, |
|
| 42 | - 'method' => self::GET, |
|
| 43 | - 'transfer' => true, |
|
| 44 | - 'follow_location' => true, |
|
| 45 | - 'timeout' => 0); |
|
| 46 | - protected $endCallback; |
|
| 38 | + protected $options = array( |
|
| 39 | + 'CURLOPT_MAXREDIRS' => 10, |
|
| 40 | + 'CURLOPT_IPRESOLVE' => CURL_IPRESOLVE_V4,//IPv4 |
|
| 41 | + 'header' => true, |
|
| 42 | + 'method' => self::GET, |
|
| 43 | + 'transfer' => true, |
|
| 44 | + 'follow_location' => true, |
|
| 45 | + 'timeout' => 0); |
|
| 46 | + protected $endCallback; |
|
| 47 | 47 | protected $withURIQuery; |
| 48 | 48 | |
| 49 | 49 | protected function __construct() { |
@@ -221,9 +221,9 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | self::filterAndRaw($this->options); |
| 224 | - var_dump($this->options); |
|
| 224 | + var_dump($this->options); |
|
| 225 | 225 | |
| 226 | - curl_setopt_array($this->curlHandle, $this->options); |
|
| 226 | + curl_setopt_array($this->curlHandle, $this->options); |
|
| 227 | 227 | // curl_setopt($this->curlHandle, CURLOPT_VERBOSE, true); |
| 228 | 228 | |
| 229 | 229 | return $this; |