Understanding URL components

A URL can contain a scheme, hostname, port, path, query and fragment. The fragment is generally handled by the browser rather than sent to the HTTP server.

Practical example

In https://example.com:443/docs?q=ip#intro, the hostname is example.com and the fragment is intro. Avoid sharing URLs containing secret tokens.

Try it yourself

Open the related tool and compare its output with the example above.

Browse all networking guides