protected function configureHTTPMethod($method)
    {
        switch ($method) {
            case self::HTTP_GET:
                break;
            case self::HTTP_POST:
                return $this->addCurlOption(CURLOPT_POST, TRUE);
            default:
                return $this->addCurlOption(CURLOPT_CUSTOMREQUEST, $method);
        }
        return TRUE;
    }
protected function configureHTTPMethod($method)
    {
        switch ($method) {
            case self::HTTP_GET:
                break;
            case self::HTTP_POST:
                return $this->addCurlOption(CURLOPT_POST, TRUE);
            default:
                return $this->addCurlOption(CURLOPT_CUSTOMREQUEST, $method);
        }
        return TRUE;
    }
protected function configureHTTPMethod ( $ method ) { switch ( $ method ) { case self :: HTTP_GET : break ; case self :: HTTP_POST : return $ this -> addCurlOption ( CURLOPT_POST , TRUE ) ; default : return $ this -> addCurlOption ( CURLOPT_CUSTOMREQUEST , $ method ) ; } return TRUE ; }
Configure the Curl Options based for a specific HTTP Method
@param $method
@return bool
Configure the Curl Options based for a specific HTTP Method