コード例 #1
0
 protected function request($url, $options = array())
 {
     //        if($this->token){
     //            // Adds authorisation head to a request so that it can be authentcated
     //            $this->setHeader('Authorization: '. $this->get_auth_header_name().'"'.$this->token.'"');
     //        }
     foreach ($this->persistantheaders as $h) {
         $this->setHeader($h);
     }
     $ret = parent::request($url, $options);
     // reset headers for next request
     $this->header = array();
     return $ret;
 }