Safe Penetration Testing Labs · intermediate · ~10 min

Reading HTTP requests

Recognize the structure of an HTTP request.

Lesson

HTTP/1.x is plain text:

METHOD path HTTP/version\r\n
Header-Name: value\r\n
Header2: value2\r\n
\r\n
optional body

Knowing the format makes log parsing trivial and lets you spot anomalies — empty user agents, bizarre methods, paths with ../, etc. Exercises parse sample requests from text fixtures, never live traffic.