Echo session
GET https://postman-echo.com/get?foo1={{headers}}&foo2=bar2
We can use variables using the double curly braces syntax - like {{this}}
in the text areas of the request builder. Alternatively, we can use variables under the scripting areas (Pre-request Script and Tests tabs) using syntax for the pm.*
APIs.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
foo1 | string | ||
foo2 | string |
RESPONSES
status: OK
{"args":{"foo1":"bar1","foo2":"bar2"},"headers":{"x-forwarded-proto":"https","host":"postman-echo.com","accept":"*/*","accept-encoding":"gzip, deflate","cache-control":"no-cache","cookie":"sails.sid=s%3AdrwixXLS9Pm3rQhXCZTY72n-RaAMpLVC.h4uL3AS0Xic3peQgCe0w8l77D4yMXFd5GPiibfrRg4s","postman-token":"c1a90054-6180-4b82-9d09-f57d777b62f9","user-agent":"PostmanRuntime/7.11.0","x-forwarded-port":"443"},"url":"https://postman-echo.com/get?foo1=bar1\u0026foo2=bar2"}