Fundamentals · Easy · Free
Break down an HTTP request: method, headers, body.
FresherFundamentalsWeb & Full-Stack
HTTP request anatomy
text
POST /api/orders HTTP/1.1
Host: api.example.com
Content-Type: application/json
Authorization: Bearer eyJ...
Content-Length: 42
{"itemId": 7, "qty": 2}- Request line: method, path, version
- Headers: metadata (auth, content type)
- Body: optional payload (POST/PUT)
Method + path + status code triangle—know cold.