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-type-header.html#:~:text=Accept%20and% 0to%20the%20server