Merge: tests: Test result update for `curl_http`
[nit.git] / tests / sav / test_nitcorn.res
index 4d2fb2c..6a13937 100644 (file)
@@ -26,6 +26,11 @@ POST args: i:0123, s:asdf
 Method: GET, URI: /simple_answer, trailing: /
 Cookie: i:0123, s:asdf
 
+[Client] curl -s localhost:*****/simple_answer --get --data-urlencode 's=b b'
+[Response] Simple answer
+Method: GET, URI: /simple_answer, trailing: /
+GET args: s:b b
+
 [Client] curl -s localhost:*****/params_answer/0123/asdf
 [Response] Simple answer
 Method: GET, URI: /params_answer/0123/asdf, trailing: /
@@ -42,7 +47,7 @@ Method: GET, URI: /params_answer/0123/asdf/trailing/path, trailing: /trailing/pa
 Params args: i:0123, s:asdf
 
 [Client] curl -s localhost:*****/params_answer/0123 --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
 Content-Length: 0\r
 Server: nitcorn\r
 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
@@ -64,9 +69,9 @@ Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
        <div class="container">
                <h1>/</h1>
                <ul>
+                       <li><a href="a.txt">a.txt</a></li>
                        <li><a href="b.txt">b.txt</a></li>
                        <li><a href="binary_file.png">binary_file.png</a></li>
-                       <li><a href="a.txt">a.txt</a></li>
                </ul>
        </div>
 </body>
@@ -118,8 +123,15 @@ Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
 \r
 
 [Client] curl -s localhost:*****/invalid_route --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
 Content-Length: 0\r
 Server: nitcorn\r
 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
 \r
+
+[Client] curl -s localhost:*****/simple_binary/
+ñòó
+
+[Client] curl -s localhost:*****/simple_template/
+Hello
+ñòó