Skip to content

Commit 92bb85f

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: [HttpClient] Mention how to get the effective response URL
2 parents 2ed730f + 2b02eca commit 92bb85f

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
@@ -949,6 +949,8 @@ following methods::
949949

950950
// you can get individual info too
951951
$startTime = $response->getInfo('start_time');
952+
// e.g. this returns the final response URL (resolving redirections if needed)
953+
$url = $response->getInfo('url');
952954

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

0 commit comments

Comments
 (0)