Table of Contents

HTTP - Post

About

The POST method requests that the target resource process the representation enclosed in the request according to the resource's own specific semantics.

They are by default not cached.

Usage

For example, POST is used for the following functions (among others):

How to execute a Post request

To create and execute a post request, you can use the following element

Example

With CURL, to create a page with a title with Json data

curl -b cookie.txt \
   -d '{"page": [{"title": "Hello World"}]}' \
   -H "Content-Type: application/json" \
   -H "Origin: https://mywebsite.com" \
   https://api-host.com/api/posts

Management

Response

If one or more resources has been created on the origin server as a result of successfully processing a POST request, the origin server SHOULD send :

Cache

Responses to POST requests are only cacheable when they include explicit freshness information

Documentation / Reference