private function genericDefaultHeaders()
    {

        //Cache-Control: no-cache
        $this->addRawHeaderLine('Cache-Control', 'no-cache');

        //Pragma: no-cache
        $this->addRawHeaderLine('Pragma', 'no-cache');

        //Connection: keep-alive
        $this->addRawHeaderLine('Connection', 'keep-alive');

        //Upgrade-Insecure-Requests: 1
        $this->addRawHeaderLine('Upgrade-Insecure-Requests', '1');

        //User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
        $this->addRawHeaderLine('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36');

        //Accept-Encoding: gzip, deflate Only support the 2 types
        $this->addRawHeaderLine('Accept-Encoding', ['gzip', 'deflate']);

        //Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
        $this->addRawHeaderLine('Accept-Language', ['zh-CN', 'zh;q=0.8', 'zh-TW;q=0.7', 'zh-HK;q=0.5', 'en-US;q=0.3', 'en;q=0.2']);

    }
private function genericDefaultHeaders()
    {

        //Cache-Control: no-cache
        $this->addRawHeaderLine('Cache-Control', 'no-cache');

        //Pragma: no-cache
        $this->addRawHeaderLine('Pragma', 'no-cache');

        //Connection: keep-alive
        $this->addRawHeaderLine('Connection', 'keep-alive');

        //Upgrade-Insecure-Requests: 1
        $this->addRawHeaderLine('Upgrade-Insecure-Requests', '1');

        //User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
        $this->addRawHeaderLine('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36');

        //Accept-Encoding: gzip, deflate Only support the 2 types
        $this->addRawHeaderLine('Accept-Encoding', ['gzip', 'deflate']);

        //Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
        $this->addRawHeaderLine('Accept-Language', ['zh-CN', 'zh;q=0.8', 'zh-TW;q=0.7', 'zh-HK;q=0.5', 'en-US;q=0.3', 'en;q=0.2']);

    }
private function genericDefaultHeaders ( ) { //Cache-Control: no-cache $ this -> addRawHeaderLine ( 'Cache-Control' , 'no-cache' ) ; //Pragma: no-cache $ this -> addRawHeaderLine ( 'Pragma' , 'no-cache' ) ; //Connection: keep-alive $ this -> addRawHeaderLine ( 'Connection' , 'keep-alive' ) ; //Upgrade-Insecure-Requests: 1 $ this -> addRawHeaderLine ( 'Upgrade-Insecure-Requests' , '1' ) ; //User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 $ this -> addRawHeaderLine ( 'User-Agent' , 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' ) ; //Accept-Encoding: gzip, deflate Only support the 2 types $ this -> addRawHeaderLine ( 'Accept-Encoding' , [ 'gzip' , 'deflate' ] ) ; //Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2 $ this -> addRawHeaderLine ( 'Accept-Language' , [ 'zh-CN' , 'zh;q=0.8' , 'zh-TW;q=0.7' , 'zh-HK;q=0.5' , 'en-US;q=0.3' , 'en;q=0.2' ] ) ; }
Default request headers
Default request headers