what is difference between content type and accept type?
Accept and Content-type are both headers sent from a client(browser say) to a service. 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.