uri = 'https://www.google.com/search?q=my+search+terms'; // You could also set the members individually, like this: //$rqst->protocol = 'https'; //$rqst->hostname = 'www.google.com'; //$rqst->path = '/search'; //$rqst->query = array('q' => 'my search terms'); // Make the request and obtain an Response instance. $resp = $rqst->request(); // Output the response body and exit. print $resp->body; exit; ?>