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

  1. Use the sample with its https scheme, full hostname, path and query.
  2. Parse it, then inspect the scheme, host, path and query values separately.
  3. 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=print

Expected result

https
docs.example.com
/guides/start.html
lang=en&mode=print

Check the result

The host should be docs.example.com and the scheme should be https.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies