Skip to content

Commit 2b02eca

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [HttpClient] Mention how to get the effective response URL
2 parents 6ee67f1 + b6c2e99 commit 2b02eca

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

944944
// you can get individual info too
945945
$startTime = $response->getInfo('start_time');
946+
// e.g. this returns the final response URL (resolving redirections if needed)
947+
$url = $response->getInfo('url');
946948

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

0 commit comments

Comments
 (0)