URL
- A URL identifies both the server and the resource(webpage / content)
- URL stands for: Uniform Resource Locator
- Also informally called “web address”
- Purpose: Find a resource on the internet
- Example: https://www.flipkart.com/books/pr?sid=bks&q=web+app
- Protocol: It defines the mode/rules of communication between the client and server for the request.
- Hostname: It identifies the server which will serve the request. It may contain the domain name. In this case “flipkart.com”
- Path: It defines the resource which is being requested. It typically points to a webpage (in this case list of books)
- Query String: It typically contains any additional parameters that is typically used to add more context to the same path (in this case books that are about “web app”)