Skip to content

Instantly share code, notes, and snippets.

@savchenkoDev
Last active June 28, 2018 09:33
Show Gist options
  • Select an option

  • Save savchenkoDev/34d72def8c3bcc2804c37850cb6ea14f to your computer and use it in GitHub Desktop.

Select an option

Save savchenkoDev/34d72def8c3bcc2804c37850cb6ea14f to your computer and use it in GitHub Desktop.
HTTP result Thinknetica
air133:~ sergejsavchenko$ ncat httpbin.org 80 -C
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.8.1
Date: Thu, 28 Jun 2018 09:00:24 GMT
Content-Type: application/json
Content-Length: 185
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":"5.167.254.134","url":"http://httpbin.org/anything"}
________________________________________________________________________________________________
air133:~ sergejsavchenko$ ncat httpbin.org 80 -C
GET /anything?test=test HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.8.1
Date: Thu, 28 Jun 2018 09:27:27 GMT
Content-Type: application/json
Content-Length: 208
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{"args":{"test":"test"},"data":"","files":{},"form":{},"headers":{"Connection":"close","Host":"httpbin.org"},
"json":null,"method":"GET","origin":"5.167.254.134","url":"http://httpbin.org/anything?test=test"}
________________________________________________________________________________________________
air133:~ sergejsavchenko$ ncat httpbin.org 80 -C
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 9
test=test
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.8.1
Date: Thu, 28 Jun 2018 09:32:39 GMT
Content-Type: application/json
Content-Length: 216
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{"args":{},"data":"test=test","files":{},"form":{},"headers":{"Connection":"close","Content-Length":"9","Host":"httpbin.org"},
"json":null,"method":"POST","origin":"5.167.254.134","url":"http://httpbin.org/anything"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment