Generate realistic HTTP header lines — request, response, or both — using standard, RFC-defined header names paired with plausible, format-correct values. Handy for mock servers, parser fuzzing, and documentation.
How it works
An HTTP header is a Name: value pair on its own line. This tool keeps separate
tables of standard request and response headers, then for each chosen header it
generates a value that matches that header’s expected shape:
Authorization: Bearer <random token>
Content-Type: <random MIME type>
Date: <current GMT date>
Cache-Control: <random directive>
Names are real and standard; values are fabricated but format-correct, so the output parses like genuine traffic without exposing any real data.
Tips and notes
Header names are case-insensitive per the spec, though the canonical
capitalization (such as Content-Type) is conventional and used here. When
feeding the output into a strict parser, keep the single space after the colon
and one header per line — both are what well-behaved clients and servers emit.