protected function makeHttpOptions($postString = '')
    {
        // Union custom Curl options and default ones.
        $options = array_replace(
            $this->options,
            $this->getDefaultHttpOptions()
        );

        if (!empty($postString)) {
            $options[CURLOPT_POST] = true;
            $options[CURLOPT_POSTFIELDS] = $postString;
        }

        return $options;
    }
protected function makeHttpOptions($postString = '')
    {
        // Union custom Curl options and default ones.
        $options = array_replace(
            $this->options,
            $this->getDefaultHttpOptions()
        );

        if (!empty($postString)) {
            $options[CURLOPT_POST] = true;
            $options[CURLOPT_POSTFIELDS] = $postString;
        }

        return $options;
    }
protected function makeHttpOptions ( $ postString = '' ) { // Union custom Curl options and default ones. $ options = array_replace ( $ this -> options , $ this -> getDefaultHttpOptions ( ) ) ; if ( ! empty ( $ postString ) ) { $ options [ CURLOPT_POST ] = true ; $ options [ CURLOPT_POSTFIELDS ] = $ postString ; } return $ options ; }
Adds necessary curl options for query.

@param string $postString POST query string

@return array
Adds necessary curl options for query .