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 2b02eca

Browse filesBrowse 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
Copy full SHA for 2b02eca

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.