I think you have to specify the Accept
header with the media type you want in addition to the Content-Type header that states what is the content type of your request, NOT the content type of the response which indeed is set by the Accept
header
So use the Accept header instead of Content-Type header