Skip to content

Instantly share code, notes, and snippets.

@jezman
Created October 1, 2018 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezman/be5a6e689a0350968d0df2208709a7ac to your computer and use it in GitHub Desktop.
Save jezman/be5a6e689a0350968d0df2208709a7ac to your computer and use it in GitHub Desktop.
======================================
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Mon, 01 Oct 2018 14:10:05 GMT
Content-Type: application/json
Content-Length: 247
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {},
"data": "",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Host": "httpbin.org"
},
"json": null,
"method": "GET",
"origin": "89.175.101.210",
"url": "http://httpbin.org/anything"
}
======================================
GET /anything?foo=bar&bar=foo HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Mon, 01 Oct 2018 14:16:31 GMT
Content-Type: application/json
Content-Length: 302
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {
"bar": "foo",
"foo": "bar"
},
"data": "",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Host": "httpbin.org"
},
"json": null,
"method": "GET",
"origin": "89.175.101.210",
"url": "http://httpbin.org/anything?foo=bar&bar=foo"
}
======================================
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 7
foo=bar
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Mon, 01 Oct 2018 14:19:53 GMT
Content-Type: application/json
Content-Length: 283
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {},
"data": "foo=bar",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Content-Length": "7",
"Host": "httpbin.org"
},
"json": null,
"method": "POST",
"origin": "89.175.101.210",
"url": "http://httpbin.org/anything"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment