post-request tagged requests and articles

Categorized request examples and articles tagged with [post-request] keyword
POST JSON String
An example of posting a JSON string to the REST API endpoint. 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.
json post-request post-data request-header post-json rest-api

POST Form Data in URL-encoded format
An example of submitting form data in a URL-encoded format. The Content-Type: application/x-www-form-urlencoded header indicates the media type of the resource. The x-www-form-urlencoded encoding is used when submitting an HTML form and means that the data is represented by name/value pairs separated by ampersands (&), and names are separated from values ​​by equality (=).
post-form urlencoded post-request form request-example

Curl POST JSON Example
An example of a Curl command to post a JSON string to the REST API endpoint. 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 a JSON media type. The JSON is passed in the -d command-line parameter.
curl json post-json post-request rest-api request-header

Curl Command to POST a Form
An example of a Curl command to post a form to the target URL. The 'Content-Type: application/x-www-form-urlencoded' request header indicates that the form data is encoded in the URL-encoded format. The Curl -d command line parameter contains the data to send.
curl post-request post-form submit-form urlencoded form

POST XML String
This page shows how to post an XML string to the target URL. 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.
xml post-request content-type soap-api post-xml request-header

Curl Command to POST an XML String
An example of a Curl command to post an XML string to the API endpoint. The 'Content-Type: application/xml' request header indicates that the request body contains an XML. The 'Accept: application/xml' request header tells the server that the client expects an XML. The XML is passed in the Curl -d command-line parameter.
curl post-request post-xml xml soap-api request-header

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-request post-data submit-data post-example request-example post-method

Geocode Address via REST API
Get the associated latitude and longitude for an address by sending a POST request to the Mapquest.com REST API. Replace {mapquest_apikey} with your own Mapquest API key.
rest-api post-request mapquest geocode geocode-address mapquest-ap

Convert Latitude and Longitude to Address via REST API
Convert latitude and longitude to a location (reverse geocode) by sending a POST request to the Mapquest.com REST API. Replace {mapquest_apikey} with your own Mapquest API key.
post-request mapquest rest-api reverse-geocode geocode mapquest-api

Search Map Objects by Address via REST API
Search the objects on the map next to the address by sending a POST request to the Mapquest.com REST API. Replace {mapquest_apikey} with your own Mapquest API key.
rest-api post-request mapquest mapquest-api search-map search-address

POST JSON String With Basic Authentication
This page shows how to send a JSON string with Basic authentication header "Authorization: Basic bG9naW46cGFzc3dvcmQ=".
post-request json basic-authentication authentication-header post-json rest-api authorization

Curl Command to POST JSON String with Bearer Token Authorization Header
This page shows how to send a JSON string with a Bearer token authorization header with Curl.
curl json post-request bearer-token authorization authorization-header post-json request-header

HTTP POST Request
An example of an HTTP POST request. The The 'Content-Type: application/json' request header indicates the POST request body media type. The 'Content-Type: application/json' response header informs the client that the server returned an JSON as a result of executing this POST request.
http-request post-request json post-method rest-api submit-data post-data

POST JSON String with Custom Headers
This page shows how to post JSON with custom request headers.
post-request json request-header custom-header post-json rest-api post-method submit-data post-data

POST JSON with Curl
An example of a Curl request to post a JSON string to the REST API endpoint. 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 a JSON. The JSON string is passed in the Curl -d command-line parameter.
curl json post-request request-header rest-api post-json

POST JSON String With Bearer Token Authorization Header
An example of how to send a JSON string with Accept: application/json and Bearer token authorization headers.
post-request json bearer-token authorization-header post-json authorization post-method

Search Map Objects by Latitude and Longitude via REST API
Search the objects on the map using a latitude/longitude pair by sending a POST request to the Mapquest.com REST API. Replace {mapquest_apikey} with your own Mapquest API key.
reat-api post-request mapquest search-map mapquest-api

POST JSON with Custom Headers
This page shows how to POST a JSON string with custom HTTP headers. Try it yourself with ReqBin online HTTP Client.
post-request json custom-header http-headers

Curl POST Form
An example of POST-ing a form with Curl with 'Content-Type: application/x-www-form-urlencoded' HTTP header. Try it yourself with ReqBin online Curl client.
curl post-form post-request urlencoded request-header post-method

POST JSON with Basic Authentication Credentials
This page shows how to post JSON string with Basic authentication credentials in the header. Try it yourself with ReqBin online HTTP Client.
post-request json basic-authentication credentials authorization rest-api

POST Form URL-encoded Data
An example of POST request to submit form URL-encoded data to HTTP API endpoint. Try it yourself with ReqBin online HTTP Client.
post-request submit-form urlencoded post-method rest-api post-form submit-data

curl -d
A live example of the Curl command for sending data in POST request with the correct HTTP header. Try it yourself with ReqBin online Curl client.
curl post-form post-request request-header urlencoded curl-command post-method submit-data http-header

Posting JSON to the Server with Curl
Curl command for posting JSON data to the server as a part of the request. The 'Content-Type: application/json' header indicates that we are sending a JSON. The 'Accept: application/json' header tells the server that we can accept JSON.
curl json post-request request-header rest-api post-json

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

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

POST JSON with Bearer Authentication Credentials
This page shows how to post JSON string with Bearer authentication credentials in the header. Try it yourself with ReqBin online HTTP Client.
post-request json bearer-token credentials rest-api authorization

POST Request With Content-Length Header
This page shows how to send a POST request with a Content-Length header that indicates the size of the provided JSON.
post-request content-length json post-method rest-api request-header post-data

POST Request
An example of sending a POST request with JSON data to the REST API endpoint. Try it yourself with ReqBin online HTTP Client.
post-request rest-api json post-json request-header

POST JSON with Curl Example
This page shows how to send a Curl command with JSON string
curl json post-request request-header post-json rest-api

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

POST JSON with Custom Authorization Header
This page shows how to post JSON string with a custom authorization header. Try it yourself with ReqBin online HTTP Client.
post-request json custom-header authorization-header authorization rest-api request-header post-json custom-authorization

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.
curl json post-data post-request request-header

Convert Curl to POST JSON Request
Convert Curl command to the HTTP POST JSON request. See the POST Header and JSON on the Raw tab.
curl json rest-api post-request post-method

Curl Header
An example of a sending header with Curl. The '-H "Accept: application/json"' Curl command-line parameter appends 'Accept: application/json' header to the request and informs the server that the Curl client expects a JSON. The "Content-Type: application/json" Curl header indicates the resource type in the request body.
curl request-header post-request

Convert Curl to HTTP POST Request
Convert Curl command to the HTTP POST request. See the POST Header and body on the Raw tab.
curl post-method rest-api post-request json

REST API Example
A Live example of sending data to the REST API endpoint. Data is sent in JSON format. Accept: application/json header indicates that the client can receive data in JSON format. Run this example Yourself.
rest-api post-request json

HTTP POST Example
A simple HTTP POST request example that shows how to send data to the HTTP API endpoint. The 'Content-Type: application/json' request header indicates the type of media resource in the POST request body. And the 'Content-Length: 80' indicates the size of data in the HTTP POST message.
post-request post-example request-example http-method

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.
http-method http-request post-request post-example request-example