Curl POST Request

An example of making a POST request with Curl. The '-H "Content-Type: application/json"' Curl command-line parameter indicates the media type of the resource. The '-d "{...}"' command-line parameter contains the data to send to the server. The 'Accept: application/json' request header informs the server that Curl client expects a JSON.
Loading...