URL Parser
Break a URL into protocol, host, path and query params.
URL parts
Protocol https Username user Password โขโขโขโขโขโข Host sub.example.com:8080 Hostname sub.example.com Port 8080 Path /path/to/page Query string ?q=coffee&type=latte Hash / fragment #section-2 Origin https://sub.example.com:8080
Query parameters
| Key | Value |
|---|---|
| q | coffee |
| type | latte |