HTTP Headers Explained: Information Sent Alongside Website Requests and Responses
How does a response describe the content it is sending? HTTP headers carry additional information with requests and responses.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: Headers accompany messages
They pass additional information between the client and server.
On-screen labels: Request information; Response information; Named fields.
-
Step 2: Each header has a meaning
The field name identifies the kind of information supplied.
On-screen labels: Header name; Header value; Defined purpose.
-
Step 3: Content type describes format
Content-Type identifies the media type of the supplied content.
On-screen labels: Document format; Media type; Content interpretation.
-
Step 4: Caching uses header guidance
Cache-Control can communicate rules about storing and reusing a response.
On-screen labels: Storage rules; Reuse conditions; Cache behaviour.
-
Step 5: Requests have headers too
The browser can send information about what it accepts.
On-screen labels: Client preferences; Accept header; Requested representation.
-
Step 6: Inspect the real message
A developer can review the headers received for the specific resource.
On-screen labels: Actual resource; Received fields; Expected configuration.
A practical check for your business
Review the headers on the exact request or response involved in the problem. The header name, value and direction matter when explaining how a connection is being handled.
Sources and further detail
Common questions
How does a response describe the content it is sending?
HTTP headers carry additional information with requests and responses. Check the actual response and the documented meaning of each header.
Go further
More video tips
All 205 videos →
CORS Explained: Browser Rules for Reading Responses from Another Origin
CORS, explained.
URL Percent Encoding Explained: Why Website Addresses Can Contain %20
URL encoding, explained.