Accept : Tells the server what the media type client needs as response.
“Accept”: text/html —Client expects the response as text/html.
Content-Type : Tells the server what media type the client sends when making a request.This is useful for server so that it can parse the request accordingly.
“Content-Type” :application/json –Client tells the server that it sending input as json.