content-type tagged requests and articles

Categorized request examples and articles tagged with [content-type] keyword
POST XML String
This page shows how to send an XML string with custom Content-Type: application/xml header.
xml post-request content-type soap-api post-xml request-header

Client Request with Content-Type Header
An example of an HTTP request to send a JSON string to the server. The 'Content-Type: application/json' header tells the server that the request body contains a JSON string.
post-request json content-type post-method rest-api request-header

Send JSON String
Live request example of sending JSON string to REST API endpoint with a custom Content-Type: application/json header.
post-json custom-header content-type json rest-api

POST XML String
This page shows how to send an XML string with custom Content-Type: application/xml header.
post-xml custom-header xml content-type soap-api post-request

Server Response with Content-Type Header
When the server responds with a JSON string, it tells the client that the message body contains JSON string with 'Content-Type: application/json' header.
server-response message-body content-type

POST JSON
This page shows how to POST a JSON string with a custom Content-Type: application/json header.
post-json json custom-header content-type post-request

Content-Type Header
The Content-Type HTTP header is used to indicate the type of media in the body of the message.
http-headers content-type