Question

In: Computer Science

what are the content negotiation headers? why are they used

what are the content negotiation headers? why are they used

Solutions

Expert Solution

Answer:  

Content negotiation

The Accept header is used to inform the server by the client that which content type is understandable by the client expressed as MIME-types. It is a request type header. This header is used to indicate what character set are acceptable for the response from the server. It is a response-type header. It is usually a comparison algorithm of request header. All the HTTP client used to tell the server which encoding or encoding it supports. It is a request-type header that tells the server about all the languages that the client can understand.

Expect

It is a request type header. It is used to indicate specific behaviors or expectations that the server needs to fulfill in order to respond to the client. Generally, Expect: 100-continue is the only expectation defined for the header field.

Cookie It is a request type header. A cookie used in the requests sent by the user to the server.
Set-Cookie It is a response header and used to send cookies from the server to the user agent. So the user agent can send them back to the server later so the server can detect the user.
Cookie2 It is a request type header. A cookie2 used in the requests sent by the user to the server.
Set-Cookie2 It is response type header and it is obsoleted. It is a provider of the mechanism to serve and retrieve state information from the client to the server.
Access-Control-Allow-Origin It is a response header that is used to indicates whether the response can be shared with requesting code from the given origin.
Access-Control-Allow-Credentials It is a Response header. The Access-Control-Allow-Credentials header is used to tell the browsers to expose the response to front-end JavaScript code when the request’s credentials mode Request.credentials is “include”.
Access-Control-Allow-Headers It is a response header that is used to expose the headers that have been mentioned in it. By default 6 response headers are already exposed which are known as CORS-safelisted response headers.
Access-Control-Allow-Methods It is a response-type header that specifies the method or methods allowed when accessing the resource.
Access-Control-Expose-Headers It is a response-type header that indicates which headers can be exposed.
Access-Control-Max-Age It is a response header that gives the time for which results of a CORS preflight request that checks to see if the CORS protocol is understood and a server is aware using specific methods and headers, can be cached.
Access-Control-Request-Headers It is a request type header, it lets the server know which HTTP headers will be used when the actual request is made.
Access-Control-Request-Method It is a request type header, it lets the server know which HTTP method will be used when the actual request is made.
Origin It is a response HTTP header that indicates the security contexts that initiates an HTTP request without indicating the path information.
Timing-Allow-Origin It is a response type header. It specify origins that are allowed to see values of attributes retrieved via features of the Resource Timing API.
Sec-WebSocket-Accept It is response-type headers category. This used by the server to intimate the client that it understood it was a WebSocket connection and it is ready to open connection.

note: plzzz don't give dislike.....plzzz comment if you have any problem i will try to solve your problem.....plzzz give thumbs up i am in need....


Related Solutions

why to choose integrative negotiation over distributive negotiation . please explain why and give an example
why to choose integrative negotiation over distributive negotiation . please explain why and give an example
What is negotiation? What are the common negotiation pitfalls? What are the strategies to overcome them?
What is negotiation? What are the common negotiation pitfalls? What are the strategies to overcome them?
What is negotiation? What are the common negotiation pitfalls? What are the strategies to overcome them?
What is negotiation? What are the common negotiation pitfalls? What are the strategies to overcome them?
What means of managing group conflicts, as discussed in Chapter 9(Conflict and Negotiation), are used in...
What means of managing group conflicts, as discussed in Chapter 9(Conflict and Negotiation), are used in the Ford-Mazda partnership? Case Study - A Successful Partnership at Ford-Mazda. Please anwers the question in minimun 200 words. Case for Analysis: A Successful Partnership at Ford-Mazda While international joint ventures among auto manufacturers make great sense, often they don’t make great profits. For example, for many years, auto giant General Motors bailed out loss-plagued Isuzu, in which at one point it owned a...
a). What is the difference between “distributive negotiation” and integrative negotiation”? (10 marks) (b). Compare and...
a). What is the difference between “distributive negotiation” and integrative negotiation”? (b). Compare and contrast the differences between “sharing” and “problem-solving” in instances of negotiation processes.
What does it mean when you recover deleted information by looking at their headers and then...
What does it mean when you recover deleted information by looking at their headers and then reconstructing it? a. Data recovery b. Recycle Bin c. Data carving (or others may call this file carving which is usually more common)    QUESTION 2 What is the method used to hide data in graphic files? a. Formatting b. Carving c. Masking d. Steganography    QUESTION 3 What could be a CLUE that would indicate the person was using steganography? a Multiple copies...
1. What is communicated during negotiation? 2. How do people communicate in negotiation? Provide examples.
    1. What is communicated during negotiation?   2. How do people communicate in negotiation? Provide examples.   3. How can you improve communication in negotiation?   4. What are special communication considerations at the close of negotiation? Provide examples.
Compare and contrast the federal government negotiation process with that used by private sector organizations.
Compare and contrast the federal government negotiation process with that used by private sector organizations.
What is the information content of dividend policy? Given this information content concept, what is the...
What is the information content of dividend policy? Given this information content concept, what is the market's typical reaction to a firm's reduction in their dividend (i.e. what happens to the stock's price)?
What is negotiation? What are the different ways of negotiating with other parties?
What is negotiation? What are the different ways of negotiating with other parties?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT