protected function getRequest($method, $url) {
		$this->queryParams = array();
		
		$request = \Httpful\Request::$method($url);
		$request->sendsJson();
		$request->expectsJson();
		$request->addHeader('User-Agent', $this->identity);

		$ip = $this->getClientIp();

		if ($ip)
			$request->addHeader('Client-IP', $ip);
		
		return $request;
	}