protected function configureHeaders(array $headers){
        $configuredHeaders = array();
        foreach($headers as $header => $value){
            $configuredHeaders[] = "$header: $value";
        }
        return $this->addCurlOption(CURLOPT_HTTPHEADER, $configuredHeaders);
    }
protected function configureHeaders(array $headers){
        $configuredHeaders = array();
        foreach($headers as $header => $value){
            $configuredHeaders[] = "$header: $value";
        }
        return $this->addCurlOption(CURLOPT_HTTPHEADER, $configuredHeaders);
    }
protected function configureHeaders ( array $ headers ) { $ configuredHeaders = array ( ) ; foreach ( $ headers as $ header => $ value ) { $ configuredHeaders [ ] = "$header: $value" ; } return $ this -> addCurlOption ( CURLOPT_HTTPHEADER , $ configuredHeaders ) ; }
Configure the Headers by setting the CURLOPT_HTTPHEADER Option
@param array $headers
@return boolean
Configure the Headers by setting the CURLOPT_HTTPHEADER Option