Skip to content

Commit 92dd49c

Browse files
javiereguiluzOskarStark
authored andcommitted
[HttpClient] Mention how to get the effective response URL
1 parent 0004575 commit 92dd49c

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)