Skip to content

Instantly share code, notes, and snippets.

@beglov
Last active February 18, 2020 17:28
Show Gist options
  • Save beglov/6d58f403ec105c216a0346abb18943ca to your computer and use it in GitHub Desktop.
Save beglov/6d58f403ec105c216a0346abb18943ca to your computer and use it in GitHub Desktop.
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Date: Tue, 18 Feb 2020 17:21:04 GMT
Content-Type: application/json
Content-Length: 285
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {},
"data": "",
"files": {},
"form": {},
"headers": {
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root=1-5e4c1d00-2b28957a1f93fa06a23cd2f8"
},
"json": null,
"method": "GET",
"origin": "31.185.5.198",
"url": "http://httpbin.org/anything"
}
GET /anything?a=1&b=2 HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Date: Tue, 18 Feb 2020 17:22:59 GMT
Content-Type: application/json
Content-Length: 324
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {
"a": "1",
"b": "2"
},
"data": "",
"files": {},
"form": {},
"headers": {
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root=1-5e4c1d73-635235321388b2bd01456bee"
},
"json": null,
"method": "GET",
"origin": "31.185.5.198",
"url": "http://httpbin.org/anything?a=1&b=2"
}
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 5
two=2
HTTP/1.1 200 OK
Date: Tue, 18 Feb 2020 17:28:15 GMT
Content-Type: application/json
Content-Length: 319
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {},
"data": "two=2",
"files": {},
"form": {},
"headers": {
"Content-Length": "5",
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root=1-5e4c1ea8-7df854e81d2fd16c32a06a0c"
},
"json": null,
"method": "POST",
"origin": "31.185.5.198",
"url": "http://httpbin.org/anything"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment