public function setAuthentication($credentials)
    {
        $this->authentication = $credentials;
        curl_setopt($this->curl, CURLOPT_USERPWD, $credentials);
    }
public function setAuthentication($credentials)
    {
        $this->authentication = $credentials;
        curl_setopt($this->curl, CURLOPT_USERPWD, $credentials);
    }
public function setAuthentication ( $ credentials ) { $ this -> authentication = $ credentials ; curl_setopt ( $ this -> curl , CURLOPT_USERPWD , $ credentials ) ; }
Sets the authentication string for the next HTTP requests.

@param String $credentials
Sets the authentication string for the next HTTP requests .