source/Http/CurlTransport.php
private function setMethod($Resource, $method) {
        switch ($method) {
            case Request::METHOD_GET:
                curl_setopt($Resource, CURLOPT_HTTPGET, true);
                break;
            case Request::METHOD_POST:
                curl_setopt($Resource, CURLOPT_POST, true);
                break;
        }
    }
private function setMethod($Resource, $method) {
        switch ($method) {
            case Request::METHOD_GET:
                curl_setopt($Resource, CURLOPT_HTTPGET, true);
                break;
            case Request::METHOD_POST:
                curl_setopt($Resource, CURLOPT_POST, true);
                break;
        }
    }
private function setMethod ( $ Resource , $ method ) { switch ( $ method ) { case Request :: METHOD_GET : curl_setopt ( $ Resource , CURLOPT_HTTPGET , true ) ; break ; case Request :: METHOD_POST : curl_setopt ( $ Resource , CURLOPT_POST , true ) ; break ; } }
Set request HTTP method
@param resource $Resource libcurl handler
@param int $method HTTP method identifier
Set request HTTP method