Service/Request/CurlRequestHandle.php
public function setHeader($key, $value)
    {
        $this->headers[$key] = $value;

        //Headers can't be passed as key: value associative array
        $tmpHeaders = array();
        foreach($this->headers as $tmpKey => $tmpValue)
        {
            $tmpHeaders[] = "$tmpKey: $tmpValue";
        }

        curl_setopt($this->handle, CURLOPT_HTTPHEADER, $tmpHeaders);
    }
public function setHeader($key, $value)
    {
        $this->headers[$key] = $value;

        //Headers can't be passed as key: value associative array
        $tmpHeaders = array();
        foreach($this->headers as $tmpKey => $tmpValue)
        {
            $tmpHeaders[] = "$tmpKey: $tmpValue";
        }

        curl_setopt($this->handle, CURLOPT_HTTPHEADER, $tmpHeaders);
    }
public function setHeader ( $ key , $ value ) { $ this -> headers [ $ key ] = $ value ; //Headers can't be passed as key: value associative array $ tmpHeaders = array ( ) ; foreach ( $ this -> headers as $ tmpKey => $ tmpValue ) { $ tmpHeaders [ ] = "$tmpKey: $tmpValue" ; } curl_setopt ( $ this -> handle , CURLOPT_HTTPHEADER , $ tmpHeaders ) ; }
Set request header

@param string $key   Request header key
@param string $value Request header value
Set request header