๐ŸŒ 1. URL Breakdown (Uniform Resource Locator)

A URL is the complete address used to access resources online. Example:


https://example.com:443/products?id=3#details

Screenshot 2025-07-06 054202.png

Screenshot 2025-07-06 054302.png

Parts:

Part Example Description
Protocol https Communication method (HTTP or HTTPS)
Domain example.com The serverโ€™s domain name
Port :443 Optional โ€“ Port used for connection
Path /products Resource location on the server
Query string ?id=3 Parameters sent to the server (key=value)
Fragment #details Used by the browser to scroll to a section

๐Ÿ“ค 2. HTTP Request (Client โ†’ Server)

The client sends a request to ask for data or perform an action.

Parts of a Request:

Screenshot 2025-07-06 054954.png

๐Ÿ”น Common Request Headers

Header Purpose
Authorization Sends credentials (Bearer token or Basic Auth)
Content-Type Describes body format (e.g., application/json)
User-Agent Info about browser/device
Accept Expected response format (e.g., application/json)
Cookie Sends cookies stored in the browser
Referrer Page where user came from
Content-Length Body size in bytes

๐Ÿ“ฅ 3. HTTP Response (Server โ†’ Client)

The server replies with a response that includes: