protected function curlOptions($action, $request)
    {
        $options = $this->options['curlopts'] + array(
            CURLOPT_SSL_VERIFYPEER => true,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_HTTPHEADER => $this->buildHeaders($action),
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_HTTPAUTH => CURLAUTH_BASIC | CURLAUTH_NTLM,
            CURLOPT_USERPWD => $this->options['user'] . ':'
                               . $this->options['password'],
        );

        // We shouldn't allow these options to be overridden.
        $options[CURLOPT_HEADER] = true;
        $options[CURLOPT_POST] = true;
        $options[CURLOPT_POSTFIELDS] = $request;

        return $options;
    }
protected function curlOptions($action, $request)
    {
        $options = $this->options['curlopts'] + array(
            CURLOPT_SSL_VERIFYPEER => true,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_HTTPHEADER => $this->buildHeaders($action),
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_HTTPAUTH => CURLAUTH_BASIC | CURLAUTH_NTLM,
            CURLOPT_USERPWD => $this->options['user'] . ':'
                               . $this->options['password'],
        );

        // We shouldn't allow these options to be overridden.
        $options[CURLOPT_HEADER] = true;
        $options[CURLOPT_POST] = true;
        $options[CURLOPT_POSTFIELDS] = $request;

        return $options;
    }
protected function curlOptions ( $ action , $ request ) { $ options = $ this -> options [ 'curlopts' ] + array ( CURLOPT_SSL_VERIFYPEER => true , CURLOPT_RETURNTRANSFER => true , CURLOPT_HTTPHEADER => $ this -> buildHeaders ( $ action ) , CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 , CURLOPT_HTTPAUTH => CURLAUTH_BASIC | CURLAUTH_NTLM , CURLOPT_USERPWD => $ this -> options [ 'user' ] . ':' . $ this -> options [ 'password' ] , ) ; // We shouldn't allow these options to be overridden. $ options [ CURLOPT_HEADER ] = true ; $ options [ CURLOPT_POST ] = true ; $ options [ CURLOPT_POSTFIELDS ] = $ request ; return $ options ; }
Builds an array of curl options for the request

@param string $action
The SOAP action to be performed.
@param string $request
The XML SOAP request.
@return array
Array of curl options.
Builds an array of curl options for the request