-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHW Network 5 POST.txt
88 lines (73 loc) · 1.93 KB
/
HW Network 5 POST.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Запрос (просто post запрос на страницу httpbin.org/post, которая разрешает метод post)
POST /post HTTP/1.1
Host: httpbin.org
Листинг
[admin@web ~]$ telnet httpbin.org 80
Trying 18.235.124.214...
Connected to httpbin.org.
Escape character is '^]'.
POST /post HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Date: Tue, 29 Jun 2021 14:02:49 GMT
Content-Type: application/json
Content-Length: 261
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-60db2809-6f76e69750d806cf6d0b8855"
},
"json": null,
"origin": "81.200.211.9",
"url": "http://httpbin.org/post"
}
Post запрос с указанием параметров
POST /post HTTP/1.1
Host: httpbin.org
Content-Length: 25
Content-Type: application/x-www-form-urlencoded
param1=test1¶m2=test2
Листинг
[admin@web ~]$ telnet httpbin.org 80
Trying 54.91.118.50...
Connected to httpbin.org.
Escape character is '^]'.
POST /post HTTP/1.1
Host: httpbin.org
Content-Length: 25
Content-Type: application/x-www-form-urlencoded
param1=test1¶m2=test2
HTTP/1.1 200 OK
Date: Tue, 29 Jun 2021 14:04:47 GMT
Content-Type: application/json
Content-Length: 397
Connection: keep-alive
Server: gunicorn/19.9.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
{
"args": {},
"data": "",
"files": {},
"form": {
"param1": "test1",
"param2": "test2"
},
"headers": {
"Content-Length": "25",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root=1-60db287f-3e5dcd2b437bea8f7b159346"
},
"json": null,
"origin": "81.200.211.9",
"url": "http://httpbin.org/post"
}