What request headers do
Headers tell the server who is calling, what format is wanted and what credentials came along. Accept declares content types, Accept-Language affects the returned language, Accept-Encoding negotiates compression, User-Agent identifies the client, Referer says where the request came from, Origin drives cross-origin checks, Authorization carries credentials, Content-Type describes the body and Cookie carries the session. Each is independent, and a server may check only a few, so a missing header need not error and an extra one may be ignored.
Steps
- The page lists common headers; tick the ones you need.
- Fill each value, such as application/json for Accept or application/json; charset=utf-8 for Content-Type.
- Add row covers headers outside the list, with name and value in separate fields.
- Click Generate for Name: Value lines that paste straight into Postman's bulk edit or curl's -H.
- Download saves text, Example shows a standard set and Clear resets.
Headers scripts cannot set
Browsers forbid setting a list of forbidden header names: Host, Content-Length, Cookie, Origin, Connection, Referer in some contexts, and anything starting with Sec-. Setting them in front-end code is silently dropped without a console warning, which explains most reports that the Referer must have been sent. The only workarounds are adding them server-side or in a proxy, or sending from a client outside browser restrictions such as curl or Postman.
Order and case
Header names are case-insensitive, so Content-Type and content-type mean the same, though canonical casing reads better. Order has no semantic effect, with one human convention: Host first and Authorization next for readable logs. What matters is duplicates, because a repeated header may be read as the first instance, merged into a comma-joined value, or rejected, depending on implementation. Confirm server behaviour before sending repeated names.
Using it to debug
A 406 usually means Accept is too narrow; a 415 means Content-Type does not match what the server parses; a failed preflight means Origin or Access-Control-Request-Headers is not allowed; a 401 calls for checking the Authorization scheme, since Basic and Bearer prefixes differ. Save these header sets as templates and reuse them for similar endpoints instead of recalling formats each time.