Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 92dd49c

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎http_client.rst

Copy file name to clipboardExpand all lines: http_client.rst
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.