Google News
logo
Rest API - Quiz(MCQ)
Which header should be configured to tell the server XML is preferred over JSON?
A)
GET
B)
Accept
C)
User-Agent
D)
Content-Type

Correct Answer :   Accept


Explanation : The Accept header can be configured to tell the server how to format the exchanged data. The Content-Type header informs the client of the format of the data being delivered. The User-Agent property describes the browser type. GET is an HTTP method, not a standard HTTP header.

Advertisement