How to read the response effective URL in Guzzle ~6.0
问题 I've been searching for about 2 hours and I can't figure it out how to read the final response uri. In previous versions of PHP Guzzle you just call $response->getEffectiveUrl() and you get it. I expected to have something similar in the new version so the final code looks like this: $response = $httpClient->post('http://service.com/login', [ 'form_params' => [ 'user' => $user, 'padss' => $pass, ] ]); $url = $response->getEffectiveUrl(); But in the latest version $response is now a GuzzleHttp