HTTP Basics

The Webb

A Web Request

  1. Browser asks DNS for the IP address of server.com.

  2. Browser connects to TCP port 80/443 of server.com.

  3. Browser sends a request with:

    1. Action: GET, POST, PUT, DELETE

    2. URL: http://server.com

    3. Headers: language, compression, user-agent.

HTTP Structure

Multiple Web Requests

HTTP is stateless by design.

HTTP Requests are independent of each other.

  • Each triggering and individual action.

  • Usually tokens or cookies are included in requests/ responses to keep state.

Last updated