October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

What Is an HTTP Request Header? Definition and Examples

HTTP request headers are fields that convey information such as client preferences, credentials, caching directives, and conditional-request details.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An HTTP request header is a field sent with an HTTP request to provide information about the request, the client, or its context. Headers can express preferences, carry credentials, guide caching, or provide conditional-request details. Each field has its own defined meaning and value syntax.

What an HTTP request header contains

HTTP fields are name/value pairs. The field name identifies what the value means, while the field’s specification defines the value’s syntax. Field names are case-insensitive, so Accept and accept refer to the same field. See RFC 9110, Section 5.

In everyday usage, “request header” means a field carried in a request. More precisely, HTTP field categories can describe a field’s role, not only whether it appears in a request or response. For example, Content-Type may appear in a request but is classified as a representation header. See MDN’s request header glossary and HTTP header glossary.

Example: fields in an HTTP request

This schematic example shows the familiar textual form of an HTTP/1.1 request:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
GET /products HTTP/1.1
Host: example.com
Accept: application/json
Authorization: Bearer <token>

Host, Accept, and Authorization are field names; the text after each colon is its value. Here, Accept states a preference for JSON, while Authorization carries credentials in an application-defined or standardized format. The placeholder token is illustrative, not a usable credential.

What request headers do

The field name determines the purpose; “header” does not imply one universal behavior. Common purposes include:

  • Preferences: Accept can indicate which media types a client can process.
  • Credentials: Authorization can carry authentication information.
  • Caching: fields such as Cache-Control communicate caching directives.
  • Conditional requests: fields can let a client make a request conditional on information about a previously received representation.

These are examples, not interchangeable instructions: consult the definition of a specific field to understand its valid values and effect. MDN’s request header glossary gives further examples, including Accept-Language, User-Agent, and Referer.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How headers relate to the HTTP message

RFC 9110 defines the header section as a sequence of header field lines. It describes the shared semantics of HTTP fields; the protocol version’s message specification defines how messages are represented and framed. See RFC 9110, Section 6.3.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
HTTP: The Definitive Guide
  • Used Book in Good Condition

In HTTP/1.x, headers are commonly shown as text with a field name, colon, and value. That display should not be mistaken for the on-wire form of HTTP/2 and later. Developer tools may show lowercase field names, and HTTP/2 uses special pseudo-header fields whose names begin with a colon. For reference, see MDN’s HTTP headers documentation.

Quick Recap

SaleBestseller No. 3
HTTP: The Definitive Guide
HTTP: The Definitive Guide
Used Book in Good Condition
$26.04
SaleBestseller No. 4
HTTP Pocket Reference: Hypertext Transfer Protocol
HTTP Pocket Reference: Hypertext Transfer Protocol
Used Book in Good Condition
$6.94
SaleBestseller No. 5
Best Value
Rank #4

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.