Basically it only returns the request path, query string, etc...
Easy enough to fix I can just throw the code into a function and call it, but I was kind of expecting the whole thing as the URI according to most formal definitions does include the whole string:
Code: Select all
foo://username:password@example.com:804 ... erret#nose
\ / \________________/\_________/ \__/ \___/ \_/ \_________/ \_________/ \__/
| | | | | | | | |
| userinfo hostname port | | parameter query fragment
| \_______________________________/ \_____________|____|____________/
scheme | | | |
| authority |path|
| | |
| path interpretable as filename
| ___________|____________ |
/ \ / \ |
urn:example:animal:ferret:nose interpretable as extension
HOST_NAME
QUERY_STRING
REQUEST_URI
What? Any special conditions?
Cheers,
Alex