Last active
October 22, 2018 15:19
-
-
Save Pekhov/0a19dc03cd44c314a0927176b37782a3 to your computer and use it in GitHub Desktop.
HTTP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\Pekav>ncat -C httpbin.org 80 | |
| GET /anything HTTP/1.1 | |
| Host: httpbin.org | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Mon, 22 Oct 2018 11:03:19 GMT | |
| Content-Type: application/json | |
| Content-Length: 245 | |
| 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": "193.47.154.2", | |
| "url": "http://httpbin.org/anything" | |
| } | |
| C:\Users\Pekav>ncat -C httpbin.org 80 | |
| GET /anything?param1=1¶m2=2 HTTP/1.1 | |
| Host: httpbin.org | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Mon, 22 Oct 2018 11:12:02 GMT | |
| Content-Type: application/json | |
| Content-Length: 304 | |
| Access-Control-Allow-Origin: * | |
| Access-Control-Allow-Credentials: true | |
| Via: 1.1 vegur | |
| { | |
| "args": { | |
| "param1": "1", | |
| "param2": "2" | |
| }, | |
| "data": "", | |
| "files": {}, | |
| "form": {}, | |
| "headers": { | |
| "Connection": "close", | |
| "Host": "httpbin.org" | |
| }, | |
| "json": null, | |
| "method": "GET", | |
| "origin": "193.47.154.2", | |
| "url": "http://httpbin.org/anything?param1=1¶m2=2" | |
| } | |
| C:\Users\Pekav>ncat -C httpbin.org 80 | |
| POST /anything HTTP/1.1 | |
| Host: httpbin.org | |
| Content-Length: 16 | |
| body_param1=test | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Mon, 22 Oct 2018 11:29:14 GMT | |
| Content-Type: application/json | |
| Content-Length: 291 | |
| Access-Control-Allow-Origin: * | |
| Access-Control-Allow-Credentials: true | |
| Via: 1.1 vegur | |
| { | |
| "args": {}, | |
| "data": "body_param1=test", | |
| "files": {}, | |
| "form": {}, | |
| "headers": { | |
| "Connection": "close", | |
| "Content-Length": "16", | |
| "Host": "httpbin.org" | |
| }, | |
| "json": null, | |
| "method": "POST", | |
| "origin": "193.47.154.2", | |
| "url": "http://httpbin.org/anything" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment