headers['Accept'] = 'application/json'; $session->useragent = 'Awesomesauce'; // Now let's make a request! $request = $session->get('/get'); // Check what we received var_dump($request); // Let's check our user agent! $request = $session->get('/user-agent'); // And check again var_dump($request);