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":"This is expected to be sent back as part of response body.","files":{},"form":{},"headers":{"x-forwarded-proto":"https","x-forwarded-port":"443","host":"postman-echo.com","x-amzn-trace-id":"Root=1-62692504-2637ebc016fc39d20779c3ab","content-length":"58","content-type":"text/plain","user-agent":"PostmanRuntime/7.29.0","accept":"*/*","cache-control":"no-cache","postman-token":"4a108912-d4a0-4bdb-8f21-c12818ed681d","accept-encoding":"gzip, deflate, br","cookie":"sails.sid=s%3A6AxJen4Bb37BqnTVLlDQT_kb_X5F87RW.6Hygsj5yGRsr0bSdYx2o0fPNjN4ZN4YbZEH3iRIBCRg"},"json":null,"url":"https://postman-echo.com/post"}