Curl/Request.php
public function setMethod($method) {
        if (isset(static::$_methodOptionMap[$method])) {
            return $this->setOption(static::$_methodOptionMap[$method],true);
        } else {
            return $this->setOption(CURLOPT_CUSTOMREQUEST,$method);
        }
    }
public function setMethod($method) {
        if (isset(static::$_methodOptionMap[$method])) {
            return $this->setOption(static::$_methodOptionMap[$method],true);
        } else {
            return $this->setOption(CURLOPT_CUSTOMREQUEST,$method);
        }
    }
public function setMethod ( $ method ) { if ( isset ( static :: $ _methodOptionMap [ $ method ] ) ) { return $ this -> setOption ( static :: $ _methodOptionMap [ $ method ] , true ) ; } else { return $ this -> setOption ( CURLOPT_CUSTOMREQUEST , $ method ) ; } }
Convenience method for setting the appropriate cURL options based on the desired
HTTP request method

@param resource $handle the curl handle
@param Request $request the Request object we're populating
Convenience method for setting the appropriate cURL options based on the desired HTTP request method