-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic.http
More file actions
82 lines (59 loc) · 1.13 KB
/
basic.http
File metadata and controls
82 lines (59 loc) · 1.13 KB
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
####
####
####asdasd
#Comment
GET http://postman-echo.com/get
Connection: keep-alice
#COmmnet #asdasd #asdasd#
X-Token: ASdasdasd #asdasd
Accept: text/html
> {%
//client.global.isEmpty();
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}
###
POST https://postman-echo.com/post
Connection: keep-alice
Accept:
Content-Type: application/json
{
"a": 123
}
###
POST https://postman-echo.com/post
Connection: keep-alice
Accept:
Content-Type: application/json
{
"a": 123
}
> {%
//client.global.isEmpty();
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}
###
#(comment
# {METHOD}\s{URI}\n
# HEADERS\n
# \n
# BODY
# {###}
# # - for comment
# )
###
POST https://postman-echo.com/get
Connection: keep-alice
Accept: text/html
Content-Type: application/json
{
"a": 123
}
> {%
client.test("Request executed failure", function() {
client.assert(response.status === 404, "Response status is not 404");
});
%}