Created
September 14, 2020 13:31
-
-
Save secretpray/5b4b6f6c16f756fdf55c351b18e0890d to your computer and use it in GitHub Desktop.
This file contains 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
1.1 GET запрос без параметров | |
httpbin.org 80 | |
GET /anything HTTP/1.1 | |
Host: httpbin.org | |
HTTP/1.1 200 OK | |
Date: Mon, 14 Sep 2020 13:19:27 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-5f5f6ddf-6823bd8823b04828e41c76c0" | |
}, | |
"json": null, | |
"method": "GET", | |
"origin": "93.79.85.253", | |
"url": "http://httpbin.org/anything" | |
} | |
1.2 GET запрос с любыми параметрами строки URL | |
ncat -C httpbin.org 80 | |
GET /anything?user=admin HTTP/1.1 | |
Host: httpbin.org | |
HTTP/1.1 200 OK | |
Date: Mon, 14 Sep 2020 13:21:59 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": { | |
"user": "admin" | |
}, | |
"data": "", | |
"files": {}, | |
"form": {}, | |
"headers": { | |
"Host": "httpbin.org", | |
"X-Amzn-Trace-Id": "Root=1-5f5f6e77-b99d34140d3b46f4ae8364b6" | |
}, | |
"json": null, | |
"method": "GET", | |
"origin": "93.79.85.253", | |
"url": "http://httpbin.org/anything?user=admin" | |
} | |
1.3 POST запрос с любыми параметрами | |
ncat -C httpbin.org 80 | |
POST /anything?user=admin HTTP/1.1 | |
Host: httpbin.org | |
Content-Length: 5 | |
max=1 | |
HTTP/1.1 400 Bad Request | |
Date: Mon, 14 Sep 2020 13:30:57 GMT | |
Content-Type: text/html | |
Content-Length: 164 | |
Connection: keep-alive | |
<html> | |
<head> | |
<title>Bad Request</title> | |
</head> | |
<body> | |
<h1><p>Bad Request</p></h1> | |
Invalid HTTP header name: 'MAX=1' | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment