public get ( String $location ) : |
||
$location | String | |
return |
public function get($location)
{
curl_setopt($this->curl, CURLOPT_HTTPGET, true);
return $this->execute('GET', $location);
}
/** * @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); }