Retrieving the full request URL
See original GitHub issueIs your feature request related to a problem? Please describe.
Actually, I can get the current path with request.path. It would be great to add:
request.urlwith the full request without the query string. Ex:http://example.comrequest.full_urlwith the full request with the query string. Ex:http://example.com?q=search
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Get the full URL in PHP - Stack Overflow
I use this code to get the full URL: $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
Read more >Get the full URL in PHP - GeeksforGeeks
Get the full URL in PHP · Create a PHP variable that will store the URL in string format. · Check whether the...
Read more >Get The Full Requested URL in PHP - Beamtic
To get the full requested URL you can use a combination of $_SERVER variables to "guess" the URL—a quick example of how to...
Read more >How to get current page URL in PHP? - Javatpoint
Learn simple PHP program; it will help you find current page URL. You can get the full URL or only name of the...
Read more >GET a url. - httr
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI refers to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, please! It’s a good idea and suggestion.
I think that a developer expects these information from a passed request. But we should’t reinvent the wheel. What do you think about furl? It’s flexible and well tested.
Usage:
Response:
Implementation:
We can use this blueprint as a starting point.
https://github.com/MasoniteFramework/masonite/pull/317