Doctrine\OrientDB\Binding\Client\Http\CurlClient::get PHP Method

get() public method

GETs a resource.
public get ( String $location ) : CurlClientResponse
$location String
return CurlClientResponse
    public function get($location)
    {
        curl_setopt($this->curl, CURLOPT_HTTPGET, true);
        return $this->execute('GET', $location);
    }

Usage Example

 /**
  * @fixes https://github.com/doctrine/orientdb-odm/pull/97
  *
  * Test coupled with a Google response
  */
 public function testYouCanExecuteAGETAfteraPOST()
 {
     $client = new CurlClient();
     $client->post('http://www.google.com/', array());
     $response = $client->get('http://www.google.com/');
     $this->assertFalse($response->getStatusCode() == 411);
 }