/** * Shortcut for {@link HTTPRequest::do_method()} with a GET method. * * @throws HTTPMaxRedirectException * @throws HTTPRequestException * @throws HTTPResponseException * * @param string $url * Remote URL * @param array $vars * Associative array with query variables * @return HTTPResponse */ public function get($url, $vars = array(), $headers = array()) { if (strpos($url, '?') !== false) { list($url, $vars) = explode('?', $url); $vars = Net::query_to_array($vars); } return $this->do_method('GET', $url, $vars, $headers); }