Request Headers Flashcards
Learn how 10 different request headers work
What does the accept header do?
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.
What does the user-agent header do?
It identifies the web browser or client application that is making the request, this enables the server to tailor its response to the client.
What does the authorisation header do?
The authorisation header is used to send the clients credentials to the server when the client is attempting to access a protected resource.
What does the content-type request header do?
The content-type request header identifies the media type of the content in the request body.
What does the cookie header do?
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.
What does the content type response header do?
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.
What does the cache-control header do?
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.
What does the server header do?
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.
What does the set cookie header do?
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.
What does the content-length header do?
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.