Request Headers Flashcards

Learn how 10 different request headers work

1
Q

What does the accept header do?

A

The accept header defines the media types that the client is able to accept from the server, this allows the server to send a resource that meets the clients needs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the user-agent header do?

A

It identifies the web browser or client application that is making the request, this enables the server to tailor its response to the client.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the authorisation header do?

A

The authorisation header is used to send the clients credentials to the server when the client is attempting to access a protected resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the content-type request header do?

A

The content-type request header identifies the media type of the content in the request body.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the cookie header do?

A

The client can use the cookie header to send previously stored cookies back to the server. The server uses these cookies to associate the request with a user or session.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the content type response header do?

A

The content type response header is the counterpart of the content-type request header, it indicates the type of data that the server is sending to the client.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the cache-control header do?

A

The cache control header controls caching behaviour in the clients browser or intermediate caches. It defines how the response can be cached, when it expires and how it should be re validated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the server header do?

A

The server header includes the name and version of the server software that generated the response, as well as information about the servers technology stack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the set cookie header do?

A

The set cookie header instructs the client to store a cookie with the specified name, value and additional attributes, such as expiration, domain, path and security flags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the content-length header do?

A

The content length header specifies the length of the response body in bytes, it helps the client anticipate how much data it is going to receive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly