-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.http
More file actions
68 lines (39 loc) · 970 Bytes
/
api.http
File metadata and controls
68 lines (39 loc) · 970 Bytes
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
@Host = http://localHost:8080
# Valid request
POST {{Host}}/send?id=12345
Content-Type: text/plain
testdata
###
# Invalid request: missing id parameter
POST {{Host}}/send
Content-Type: text/plain
testdata
###
# Invalid request: empty id parameter
POST {{Host}}/send?id=
Content-Type: text/plain
testdata
###
# Invalid request: invalid id parameter (only ASCII alphanumeric, '-' and '_' characters allowed)
POST {{Host}}/send?id=hello+world
Content-Type: text/plain
testdata
###
# Invalid request: too long id parameter (more than 32 characters)
POST {{Host}}/send?id=0123456789ABCDEF1234567890ABCDEF0
Content-Type: text/plain
testdata
###
# Invalid request: empty body
POST {{Host}}/send?id=12345
Content-Type: text/plain
###
# Invalid request: unsupported method
GET {{Host}}/send?id=12345
Content-Type: text/plain
testdata
###
# Invalid request: incorrect Content-Type
POST {{Host}}/send?id=12345
Content-Type: application/json
"testdata"