tests/sav: Update tests results
[nit.git] / tests / sav / test_nitcorn.res
1
2 [Client] curl -s localhost:*****/simple_answer
3 [Response] Simple answer
4 Method: GET, URI: /simple_answer, trailing: /
5
6 [Client] curl -s localhost:*****/simple_answer/
7 [Response] Simple answer
8 Method: GET, URI: /simple_answer/, trailing: /
9
10 [Client] curl -s localhost:*****/simple_answer/trailing/path
11 [Response] Simple answer
12 Method: GET, URI: /simple_answer/trailing/path, trailing: /trailing/path
13
14 [Client] curl -s 'localhost:*****/simple_answer?i=0123&s=asdf'
15 [Response] Simple answer
16 Method: GET, URI: /simple_answer, trailing: /
17 GET args: i:0123, s:asdf
18
19 [Client] curl -s localhost:*****/simple_answer --data 'i=0123&s=asdf'
20 [Response] Simple answer
21 Method: POST, URI: /simple_answer, trailing: /
22 POST args: i:0123, s:asdf
23
24 [Client] curl -s localhost:*****/simple_answer --cookie 'i=0123; s=asdf'
25 [Response] Simple answer
26 Method: GET, URI: /simple_answer, trailing: /
27 Cookie: i:0123, s:asdf
28
29 [Client] curl -s localhost:*****/simple_answer --get --data-urlencode 's=b b'
30 [Response] Simple answer
31 Method: GET, URI: /simple_answer, trailing: /
32 GET args: s:b b
33
34 [Client] curl -s localhost:*****/params_answer/0123/asdf
35 [Response] Simple answer
36 Method: GET, URI: /params_answer/0123/asdf, trailing: /
37 Params args: i:0123, s:asdf
38
39 [Client] curl -s localhost:*****/params_answer/0123/
40 [Response] Simple answer
41 Method: GET, URI: /params_answer/0123/, trailing: /
42 Params args: i:0123, s:
43
44 [Client] curl -s localhost:*****/params_answer/0123/asdf/trailing/path
45 [Response] Simple answer
46 Method: GET, URI: /params_answer/0123/asdf/trailing/path, trailing: /trailing/path
47 Params args: i:0123, s:asdf
48
49 [Client] curl -s localhost:*****/params_answer/0123 --head
50 HTTP/1.0 404 Not Found\r
51 Content-Length: 0\r
52 Server: nitcorn\r
53 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
54 \r
55
56 [Client] curl -s localhost:*****/file_server/
57 <!DOCTYPE html>
58 <head>
59         <meta charset="utf-8">
60         <meta http-equiv="X-UA-Compatible" content="IE=edge">
61         <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
62         <script>
63                 
64         </script>
65         <title>/</title>
66 </head>
67 <body>
68         
69         <div class="container">
70                 <h1>/</h1>
71                 <ul>
72                         <li><a href="a.txt">a.txt</a></li>
73                         <li><a href="b.txt">b.txt</a></li>
74                         <li><a href="binary_file.png">binary_file.png</a></li>
75                 </ul>
76         </div>
77 </body>
78 </html>
79 [Client] curl -s localhost:*****/file_server/ --head
80 HTTP/1.0 200 OK\r
81 Content-Type: text/html\r
82 Content-Length: 467\r
83 Server: nitcorn\r
84 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
85 \r
86
87 [Client] curl -s localhost:*****/file_server --head
88 HTTP/1.0 303 See Other\r
89 Location: /file_server/\r
90 Content-Length: 0\r
91 Server: nitcorn\r
92 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
93 \r
94
95 [Client] curl -s localhost:*****/file_server/a.txt
96 aaaAAAAAaaaa
97
98 [Client] curl -s localhost:*****/file_server/a.txt --head
99 HTTP/1.0 200 OK\r
100 Content-Type: text/plain\r
101 cache-control: public, max-age=360\r
102 Content-Length: 13\r
103 Server: nitcorn\r
104 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
105 \r
106
107 [Client] curl -s localhost:*****/file_server/binary_file.png --head
108 HTTP/1.0 200 OK\r
109 Content-Type: image/png\r
110 cache-control: public, max-age=360\r
111 Content-Length: 2503\r
112 Server: nitcorn\r
113 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
114 \r
115
116 [Client] curl -s localhost:*****/file_server/binary_file.png | diff - .../binary_file.png
117
118 [Client] curl -s localhost:*****/file_server/unknown_file.txt --head
119 HTTP/1.0 404 Not Found\r
120 Content-Length: 329\r
121 Server: nitcorn\r
122 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
123 \r
124
125 [Client] curl -s localhost:*****/invalid_route --head
126 HTTP/1.0 404 Not Found\r
127 Content-Length: 0\r
128 Server: nitcorn\r
129 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
130 \r
131
132 [Client] curl -s localhost:*****/simple_binary/
133 ñòó
134
135 [Client] curl -s localhost:*****/simple_template/
136 Hello
137 ñòó