Web & HTTPNot Started
HTTP Basics
How browsers and servers communicate — request/response cycle
0%
Knowledge0%
Learn & DrillFluency0%
Drill & SpeedRetention0%
Mastery & ReviewConfidence0%
All modesKnowledge
Fluency
Retention
Knowledge Debt detected
You can study this freely — but your score may plateau if these foundations have gaps. The Mastery badge requires them to be solid.
Explanation
is how clients (browsers, apps) communicate with servers.
Request-Response cycle:
- 1. sends a request (URL + method + + optional body)
- 2. Server processes it and sends a response (status code + headers + body)
URL anatomy: https://api.example.com:443/users/42?format=json - Protocol: https - Host: api.example.com - Port: 443 - Path: /users/42 - Query string: ?format=json
import requests
response = requests.get("https://api.example.com/users/42")
print(response.status_code)What will this print?
HTTP is — each request is independent.
Examples
HTTP request structure
A typical HTTP GET request
GET /users/42 HTTP/1.1
Host: api.example.com
Accept: application/json
Authorization: Bearer eyJ...How well did you understand this?
Next in Web & HTTP
HTTP Methods