@HOST = http://httpbin.org
### SimpleGet
GET {{ HOST}}/get HTTP/1.1
/// Another comment
###
# @name JsonPost
@FIRST=Joe
@LAST=Smith
@FULL={{ FIRST }} {{LAST}}
POST {{HOST}}/post?hello=123 HTTP/1.1
Authorization: Basic Zm9vOmJhcg==
Content-Type: application/json
X-Http-Method-Override: PUT
{
"data": "my data",
"name": "{{FULL}}"
}
#######
@ENDPOINT = post
POST https://httpbin.org/{{ENDPOINT}} HTTP/1.1
Authorization: Bearer efaxijasdfjasdfa
Content-Type: application/x-www-form-urlencoded
My-Header: hello
Other-Header: goodbye
first={{ FIRST}}&last={{LAST}}&full={{FULL}}
### Pet.json
POST {{HOST}}/post HTTP/1.1
Content-Type: application/json
< ../test_data/pets.json