Created
October 16, 2018 08:55
-
-
Save ruuke/55751ac0032e9bdbe1128166e2da969a to your computer and use it in GitHub Desktop.
Part 1 - task1
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
| ruuke@ruuke-VPCEB1M1R:~$ 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: Tue, 16 Oct 2018 07:38:20 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": "145.255.1.46", | |
| "url": "http://httpbin.org/anything" | |
| } | |
| ^C | |
| ruuke@ruuke-VPCEB1M1R:~$ |
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
| ruuke@ruuke-VPCEB1M1R:~$ ncat -C httpbin.org 80 | |
| GET /anything?arg1=1&arg2=2 HTTP/1.1 | |
| Host: httpbin.org | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Tue, 16 Oct 2018 07:47:08 GMT | |
| Content-Type: application/json | |
| Content-Length: 296 | |
| Access-Control-Allow-Origin: * | |
| Access-Control-Allow-Credentials: true | |
| Via: 1.1 vegur | |
| { | |
| "args": { | |
| "arg1": "1", | |
| "arg2": "2" | |
| }, | |
| "data": "", | |
| "files": {}, | |
| "form": {}, | |
| "headers": { | |
| "Connection": "close", | |
| "Host": "httpbin.org" | |
| }, | |
| "json": null, | |
| "method": "GET", | |
| "origin": "145.255.1.46", | |
| "url": "http://httpbin.org/anything?arg1=1&arg2=2" | |
| } |
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
| ruuke@ruuke-VPCEB1M1R:~$ ncat -C httpbin.org 80 | |
| POST /anything?arg1=1&arg2=2 HTTP/1.1 | |
| Host: httpbin.org | |
| Content-Length:10 | |
| level=2 | |
| HTTP/1.1 200 OK | |
| Connection: keep-alive | |
| Server: gunicorn/19.9.0 | |
| Date: Tue, 16 Oct 2018 07:50:20 GMT | |
| Content-Type: application/json | |
| Content-Length: 344 | |
| Access-Control-Allow-Origin: * | |
| Access-Control-Allow-Credentials: true | |
| Via: 1.1 vegur | |
| { | |
| "args": { | |
| "arg1": "1", | |
| "arg2": "2" | |
| }, | |
| "data": "\r\n\r\n\r\n\r\nle", | |
| "files": {}, | |
| "form": {}, | |
| "headers": { | |
| "Connection": "close", | |
| "Content-Length": "10", | |
| "Host": "httpbin.org" | |
| }, | |
| "json": null, | |
| "method": "POST", | |
| "origin": "145.255.1.46", | |
| "url": "http://httpbin.org/anything?arg1=1&arg2=2" | |
| } | |
| HTTP/1.1 400 Bad Request | |
| Connection: close | |
| Server: Cowboy | |
| Date: Tue, 16 Oct 2018 07:50:20 GMT | |
| Content-Length: 0 | |
| ^C | |
| ruuke@ruuke-VPCEB1M1R:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment