post-example tagged requests and articles

Categorized request examples and articles tagged with [post-example] 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.

Curl POST JSON Example
An example of a Curl command to post JSON to the API endpoint. To post JSON with Curl, you need to set the content type to application/json. This is done by the -H "Content-Type: application/json" command-line option. The JSON is passed with the curl -d option. Double quotes in JSON are escaped with \".

REST API POST Example
An example of posting JSON to the REST API endpoint. In this REST API POST example, the Content-Type: application/json request header specifies the media type of the resource in the body as JSON. The Accept: application/json request header tells the server that the client expects a JSON string. 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.

POST XML Example
An example of sending an XML string to the target URL. In this post XML example, the Content-Type: application/xml request header indicates the media type of the resource in the request body. The Accept: application/xml request header tells the server that the client expects an XML media type. The Content-Type: application/xml response header indicates that the server returned XML.

HTTP POST Example
An example HTTP POST request that shows how to send data to an HTTP API endpoint. In this HTTP POST example, the Content-Type: application/json request header indicates the type of media resource in the POST request body. The Content-Length header indicates the size of data in the HTTP POST message.

Sample API POST Request
An example of making an API POST request to the API endpoint. In this API POST request sample, the Content-Type request header indicates the media type of the POST request body, and the Content-Length header indicates the size of the data in the API POST request body.

HTTP POST Request
The HTTP POST method is used to send data to the server. The type and size of data are not limited but you must specify the data type in the Content-Type header and the data size in the Content-Length header fields. The HTTP POST method is not idempotent, which means that sending an identical POST request multiple times may additionally affect the state or cause further side effects.