public function Get($url = null, $params = array())
    {
        if (null !== $url)
            $this->url = $url;

		if (!empty($params))
			$this->parameters = $params;
		$query = '';
		foreach ($this->parameters as $k => $v)
			$query .= ((strlen ($query) == 0) ? '?' : '&') . sprintf('%s=%s', $k, $v);

		$response = $this->GetResponse();

        $this->response = $response;
        return $this;
    }
public function Get($url = null, $params = array())
    {
        if (null !== $url)
            $this->url = $url;

		if (!empty($params))
			$this->parameters = $params;
		$query = '';
		foreach ($this->parameters as $k => $v)
			$query .= ((strlen ($query) == 0) ? '?' : '&') . sprintf('%s=%s', $k, $v);

		$response = $this->GetResponse();

        $this->response = $response;
        return $this;
    }
public function Get ( $ url = null , $ params = array ( ) ) { if ( null !== $ url ) $ this -> url = $ url ; if ( ! empty ( $ params ) ) $ this -> parameters = $ params ; $ query = '' ; foreach ( $ this -> parameters as $ k => $ v ) $ query .= ( ( strlen ( $ query ) == 0 ) ? '?' : '&' ) . sprintf ( '%s=%s' , $ k , $ v ) ; $ response = $ this -> GetResponse ( ) ; $ this -> response = $ response ; return $ this ; }
Makes a GET request
@param string $url A URL in which to make a GET request
@param Array $params An associative array of key/value pairs to pass to said URL
@return Request
Makes a GET request