ExamGecko
Question list
Search
Search

Question 350 - 200-301 discussion

Report
Export

With REST API, which standard HTTP header tells a server which media type is expected by theclient?

A.

Accept-Encoding: gzip. deflate

Answers
A.

Accept-Encoding: gzip. deflate

B.

Accept-Patch: text/example; charset=utf-8

Answers
B.

Accept-Patch: text/example; charset=utf-8

C.

Content-Type: application/json; charset=utf-8

Answers
C.

Content-Type: application/json; charset=utf-8

D.

Accept: application/json

Answers
D.

Accept: application/json

Suggested answer: D

Explanation:

Accept header is a way for a client to specify the media type of the response content it is expecting and Content-type is a way to specify the media type of request being sent from the client to the server. http://www.java- allandsundry.com/2012/08/accept-header-vs-content-typeheader. html#:~:text=Accept%20and%20Content%2Dtype%20are,the%20client%20to%20the%20serv er

asked 07/10/2024
Fu Sin
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first