HTTP Request and Response Headers

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to HTTP request and response headers.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

What does the Accept header indicate in an HTTP request?

It indicates which content types the client can process (e.g., text/html, application/json).

2
New cards

What is the purpose of the Accept-Language header?

It lists the client’s preferred languages, from most to least preferred (e.g., en-US,en;q=0.8).

3
New cards

What does the Accept-Encoding header specify?

It specifies which content encodings (usually compression formats like gzip, br) are supported by the client.

4
New cards

What is the function of the Cookie header?

It sends stored cookies back to the server; used to maintain sessions and preferences.

5
New cards

What does the Host header indicate?

It specifies the target host (domain name and optional port) and is mandatory in HTTP/1.1 requests.

6
New cards

What does the If-Modified-Since header contain?

It contains the last modification date of a cached resource, which the server uses to validate the cached version.

7
New cards

What is the purpose of the If-None-Match header in an HTTP request?

It sends the ETag previously received for a resource to detect changes in the resource.

8
New cards

What information does the Referer header provide?

It identifies the URL of the page that originated the current request.

9
New cards

What does the User-Agent header describe?

It describes the client software making the request (browser name, version, OS, etc.).

10
New cards

What does the Cache-Control header provide in an HTTP response?

It provides caching instructions for the client and intermediate proxies (e.g., no-cache, max-age=3600).

11
New cards

What is an ETag in the context of HTTP responses?

A unique identifier (hash) that represents the current version of the resource, used for cache validation.

12
New cards

What does the Expires header specify?

It specifies the exact date/time when the resource should be considered stale (used for caching).

13
New cards

What does the Vary header list?

It lists which request headers might cause a variation in the response content (e.g., Accept-Language).

14
New cards

What does the Location header indicate in an HTTP response?

It indicates the new URL to request when the response is a redirection (e.g., status code 301 or 302).

15
New cards

What information does the Server header provide?

It identifies the software used by the origin server (e.g., Apache/2.4.58).

16
New cards

What is the purpose of the Set-Cookie header?

It sends cookies to the client; these will be stored and returned in future requests.