POST Form Data
POST https://postman-echo.com/post
The HTTP POST
request method is meant to transfer data to a server
(and elicit a response). What data is returned depends on the implementation
of the server.
A POST
request can pass parameters to the server using Query String
Parameters
, as well as the Request Body. For example, in the following request,
POST /hi/there?hand=wave
The parameter hand
has the value wave
. The request body can be in multiple
formats. These formats are defined by the MIME type of the request. The MIME
Type can be set using the Content-Type
HTTP header. The most commonly used
MIME types are:
multipart/form-data
application/x-www-form-urlencoded
application/json
This endpoint echoes the HTTP headers, request parameters, the contents of the request body and the complete URI requested when data is sent as a form parameter.
Request Body
[{"name"=>"foo1", "value"=>"bar1", "datatype"=>"string"}, {"name"=>"foo2", "value"=>"bar2", "datatype"=>"string"}]
RESPONSES
status: OK
{"args":{},"data":"","files":{},"form":{"foo1":"bar1","foo2":"bar2"},"headers":{"x-forwarded-proto":"https","x-forwarded-port":"443","host":"postman-echo.com","x-amzn-trace-id":"Root=1-63e0c942-584c7dab4a1c52d34d581b03","content-length":"19","user-agent":"PostmanRuntime/7.30.1","accept":"*/*","cache-control":"no-cache","postman-token":"159c6495-8e5f-4ce0-bacd-ac399a86ec03","accept-encoding":"gzip, deflate, br","content-type":"application/x-www-form-urlencoded"},"json":{"foo1":"bar1","foo2":"bar2"},"url":"https://postman-echo.com/post"}