2 [Client] curl -s localhost:*****/simple_answer
3 [Response] Simple answer
4 Method: GET, URI: /simple_answer, trailing: /
6 [Client] curl -s localhost:*****/simple_answer/
7 [Response] Simple answer
8 Method: GET, URI: /simple_answer/, trailing: /
10 [Client] curl -s localhost:*****/simple_answer/trailing/path
11 [Response] Simple answer
12 Method: GET, URI: /simple_answer/trailing/path, trailing: /trailing/path
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
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
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
29 [Client] curl -s localhost:*****/params_answer/0123/asdf
30 [Response] Simple answer
31 Method: GET, URI: /params_answer/0123/asdf, trailing: /
32 Params args: i:0123, s:asdf
34 [Client] curl -s localhost:*****/params_answer/0123/
35 [Response] Simple answer
36 Method: GET, URI: /params_answer/0123/, trailing: /
37 Params args: i:0123, s:
39 [Client] curl -s localhost:*****/params_answer/0123/asdf/trailing/path
40 [Response] Simple answer
41 Method: GET, URI: /params_answer/0123/asdf/trailing/path, trailing: /trailing/path
42 Params args: i:0123, s:asdf
44 [Client] curl -s localhost:*****/params_answer/0123 --head
45 HTTP/1.0 404 Not Found
\r
48 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
51 [Client] curl -s localhost:*****/file_server/
54 <meta charset="utf-8">
55 <meta http-equiv="X-UA-Compatible" content="IE=edge">
56 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
64 <div class="container">
67 <li><a href="a.txt">a.txt</a></li>
68 <li><a href="b.txt">b.txt</a></li>
69 <li><a href="binary_file.png">binary_file.png</a></li>
74 [Client] curl -s localhost:*****/file_server/ --head
76 Content-Type: text/html
\r
79 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
82 [Client] curl -s localhost:*****/file_server --head
83 HTTP/1.0 303 See Other
\r
84 Location: /file_server/
\r
87 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
90 [Client] curl -s localhost:*****/file_server/a.txt
93 [Client] curl -s localhost:*****/file_server/a.txt --head
95 Content-Type: text/plain
\r
96 cache-control: public, max-age=360
\r
99 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
102 [Client] curl -s localhost:*****/file_server/binary_file.png --head
104 Content-Type: image/png
\r
105 cache-control: public, max-age=360
\r
106 Content-Length: 2503
\r
108 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
111 [Client] curl -s localhost:*****/file_server/binary_file.png | diff - .../binary_file.png
113 [Client] curl -s localhost:*****/file_server/unknown_file.txt --head
114 HTTP/1.0 404 Not Found
\r
115 Content-Length: 329
\r
117 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r
120 [Client] curl -s localhost:*****/invalid_route --head
121 HTTP/1.0 404 Not Found
\r
124 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
\r