What is the use of Accept and Content-Type Headers in HTTP Request?
application/xmlthen XML response will be sent. For Accept header
application/json, server will send the JSON response.
application/xmlthen server will try to parse it as XML data. This header is useful in HTTP Post and Put requests.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.