-
Notifications
You must be signed in to change notification settings - Fork 0
/
webserv_expected
87 lines (87 loc) · 2.39 KB
/
webserv_expected
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
testing wrong conf 'no_bracket_location.conf'
unexpected token in location: auto-outdex
Expected a "{"
testing wrong conf 'no_bracket_server.conf'
unexpected token in location: listen
Expected a "{"
testing wrong conf 'two_body_sizes.conf'
unexpected token in location: client_max_body_size
Max body size given twice for same server
testing wrong conf 'two_server_names.conf'
unexpected token in location: server_name
Server name given twice for same server
testing wrong conf 'two_roots.conf'
unexpected token in location: root
Root given twice for same server
testing wrong conf 'two_cgi_paths.conf'
unexpected token in location: cgi
Cgi path given twice for same server
testing wrong conf 'two_redirs.conf'
unexpected token in location: redirect
Redirection given twice for same server
testing wrong conf 'unknown_body_size.conf'
unexpected token in location: 2Q
Known tokens are: B, K, G, M
testing wrong conf 'wrong_number.conf'
unexpected token in location: 8nul80
Token is not a valid number
testing wrong conf 'no_server.conf'
No server found
testing wrong conf 'no_root.conf'
Some servers have root
testing wrong conf 'no_listen.conf'
Some servers have no port to listen on
testing wrong conf 'two_indices.conf'
unexpected token in location: index
Index given twice for same location
testing wrong conf 'typo.conf'
unexpected token in location: auto-outdex
Known tokens are: autoindex, index, off, "}"
testing wrong conf 'negative_mbs.conf'
unexpected token in location: -2G
Token is not a valid number
testing wrong conf 'negative_port.conf'
unexpected token in location: -8080
Listen port must be positive
testing wrong conf 'negative_error_page.conf'
unexpected token in location: -404
Token is negative number
testing wrong conf 'junk.conf'
unexpected token in location: e¿Ú%ê
Known tokens are: server
testing wrong conf 'listen_port_zero.conf'
unexpected token in location: 0
Listen port must be positive
get ''
8080: 200
8081: 200
8080, bloe.com: 200
get 'redir'
8080: 301
8081: 404
8080, bloe.com: 404
get 'banaan'
8080: 404
8081: 404
8080, bloe.com: 404
get 'uploads'
8080: 200
8081: 404
8080, bloe.com: 404
delete ''
200
delete 'deleted.html'
200
method 'lelele' on ''
501
method 'loeloeloe' on '/banaan'
501
delete 'uploads'
405
post 'first_name=fname&second_name=lname' to 'cgi/cgitest.py'
200
post 'first_name=fname&second_name=lname' to ''
400
post '@tests/webpages/image/miniRT_showcase.jpg' to '/handle_file.html'
400
5