src/WebRequest.php
protected function defaultCurlOptions()
    {
        $this->curlOptions[CURLOPT_CONNECTTIMEOUT] = 30;
        $this->curlOptions[CURLOPT_TIMEOUT] = 30;
        $this->curlOptions[CURLOPT_HEADER] = true;
        $this->curlOptions[CURLOPT_RETURNTRANSFER] = true;
        $this->curlOptions[CURLOPT_USERAGENT] = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
        $this->curlOptions[CURLOPT_FOLLOWLOCATION] = true;
        $this->curlOptions[CURLOPT_SSL_VERIFYHOST] = false;
        $this->curlOptions[CURLOPT_SSL_VERIFYPEER] = false;
    }
protected function defaultCurlOptions()
    {
        $this->curlOptions[CURLOPT_CONNECTTIMEOUT] = 30;
        $this->curlOptions[CURLOPT_TIMEOUT] = 30;
        $this->curlOptions[CURLOPT_HEADER] = true;
        $this->curlOptions[CURLOPT_RETURNTRANSFER] = true;
        $this->curlOptions[CURLOPT_USERAGENT] = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
        $this->curlOptions[CURLOPT_FOLLOWLOCATION] = true;
        $this->curlOptions[CURLOPT_SSL_VERIFYHOST] = false;
        $this->curlOptions[CURLOPT_SSL_VERIFYPEER] = false;
    }
protected function defaultCurlOptions ( ) { $ this -> curlOptions [ CURLOPT_CONNECTTIMEOUT ] = 30 ; $ this -> curlOptions [ CURLOPT_TIMEOUT ] = 30 ; $ this -> curlOptions [ CURLOPT_HEADER ] = true ; $ this -> curlOptions [ CURLOPT_RETURNTRANSFER ] = true ; $ this -> curlOptions [ CURLOPT_USERAGENT ] = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ; $ this -> curlOptions [ CURLOPT_FOLLOWLOCATION ] = true ; $ this -> curlOptions [ CURLOPT_SSL_VERIFYHOST ] = false ; $ this -> curlOptions [ CURLOPT_SSL_VERIFYPEER ] = false ; }
Set the default curl options.
You can override this method to setup your own default options.
You can pass the options to the constructor also;
Set the default curl options . You can override this method to setup your own default options . You can pass the options to the constructor also ;