Skip to content

Commit b6c2e99

Browse files
committed
minor symfony#15522 [HttpClient] Mention how to get the effective response URL (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [HttpClient] Mention how to get the effective response URL Fixes symfony#15507. Commits ------- 92dd49c [HttpClient] Mention how to get the effective response URL
2 parents 0004575 + 92dd49c commit b6c2e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http_client.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,8 @@ following methods::
845845

846846
// you can get individual info too
847847
$startTime = $response->getInfo('start_time');
848+
// e.g. this returns the final response URL (resolving redirections if needed)
849+
$url = $response->getInfo('url');
848850

849851
// returns detailed logs about the requests and responses of the HTTP transaction
850852
$httpLogs = $response->getInfo('debug');

0 commit comments

Comments
 (0)