URL
Last updated
Last updated
URL
What a user types to reach a resource
Understanding each component:
Scheme: | http://https:// | identifies the protocol being accessed by the client.
User Info: | admin:password@ | Optional, used to authenticate to a host.
Host: | inlanefreight.com | Resource location, can be either a hostname or an IP address.
Port: | :80 | When no port is specified, http will go to 80, https will go to 443.
Path: | /dashboard.php | The resource being accessed. Can be a file or folder. Will go to default index. ex: index.html
Query String: | ?login=true | Consists of paramater (login) and value (true). Multiple parameters can be used if seperated by &.
Fragments: | #status | Processed by the browser on the client-side to locate sections within the primary resource. (ex: header or section on the page).
All components are not necessary to reach a resource. Mandatory fields include the scheme and host.