You are here

public function HttpClient::get in Http Client 7.2

Same name and namespace in other branches
  1. 6.2 includes/HttpClient.inc \HttpClient::get()

Executes a GET request.

File

includes/HttpClient.inc, line 91

Class

HttpClient
A http client.

Code

public function get($url, $parameters = array()) {
  return $this
    ->execute(new HttpClientRequest($url, array(
    'method' => 'GET',
    'parameters' => $parameters,
  )));
}