post-data tagged requests and articles

Categorized request examples and articles tagged with [post-data] keyword
POST JSON Example
An example of posting a JSON string to the REST API endpoint. In this post JSON example, the Content-Type: application/json request header indicates the media type of the resource in the request body. The Accept: application/json request header tells the server that the client expects JSON. The Content-Type: application/json response header indicates that the server returned JSON.

POST Request Example
An example of making an HTTP POST request to the server. In this POST request example, the Content-Type request header indicates the media type of the POST body, and the Content-Length request header indicates the size of the data in the POST request body.

Curl POST Request
An example of making a POST request using Curl. The -X POST command line parameter tells Curl to use the POST method for this request. The -d command line parameter contains the data to send to the server. The Curl -H "Content-Type: application/json" command line parameter specifies the media type of the resource in the request body.