URL Parser
Separate a full URL into the parts you need for checking a link or diagnosing a query.
Separate a full URL into the parts you need for checking a link or diagnosing a query.
How to use
- Use the sample with its https scheme, full hostname, path and query.
- Parse it, then inspect the scheme, host, path and query values separately.
- Check that /guides/start.html is the path and lang=en&mode=print is the query.
Worked example
Input
https://docs.example.com/guides/start.html?lang=en&mode=printExpected result
https
docs.example.com
/guides/start.html
lang=en&mode=printCheck the result
The host should be docs.example.com and the scheme should be https.