popcorn: test test_example_post_handler with pop_tests
[nit.git] / lib / popcorn / examples / handlers / test_example_post_handler.sav / test_example_post_handler.res
diff --git a/lib/popcorn/examples/handlers/test_example_post_handler.sav/test_example_post_handler.res b/lib/popcorn/examples/handlers/test_example_post_handler.sav/test_example_post_handler.res
new file mode 100644 (file)
index 0000000..72589e2
--- /dev/null
@@ -0,0 +1,38 @@
+
+[Client] curl -s localhost:*****/ -X POST
+URI: /
+Body: 
+
+[Client] curl -s localhost:*****/ --data 'user'
+POST Error: user format error on user
+URI: /
+Body: user
+
+[Client] curl -s localhost:*****/ --data 'user=Morriar'
+URI: /
+Body: user=Morriar
+user: Morriar
+
+[Client] curl -s localhost:*****/ --data 'user=&order=desc'
+URI: /
+Body: user=&order=desc
+user: 
+order: desc
+
+[Client] curl -s localhost:*****/ --data 'user=Morriar&order=desc'
+URI: /
+Body: user=Morriar&order=desc
+user: Morriar
+order: desc
+
+[Client] curl -s localhost:*****/
+               <!DOCTYPE html>
+               <html>
+               <head>
+                       <meta charset="utf-8">
+                       <title>Not Found</title>
+               </head>
+               <body>
+               <h1>404 Not Found</h1>
+               </body>
+               </html>
\ No newline at end of file