1b14f14ed24738749ed960fb252a8b0916456cc4
[nit.git] / lib / popcorn / tests / res / test_example_static_multiple.res
1
2 [Client] curl -s localhost:*****/css/style.css
3 body {
4         color: blue;
5         padding: 20px;
6 }
7
8 [Client] curl -s localhost:*****/js/app.js
9 alert("Hello World!");
10
11 [Client] curl -s localhost:*****/hello.html
12 <!DOCTYPE html>
13 <html>
14         <head>
15                 <meta charset="UTF-8">
16
17                 <title>Some Popcorn love</title>
18
19                 <link rel="stylesheet" type="text/css" href="/css/style.css">
20         </head>
21         <body>
22                 <h1>Hello Popcorn!</h1>
23
24                 <img src="/images/trollface.jpg" alt="maybe it's a kitten?" />
25
26                 <script src="/js/app.js"></script>
27         </body>
28 </html>
29
30 [Client] curl -s localhost:*****/
31 Warning: Headers already sent!
32 <!DOCTYPE html>
33 <html>
34         <body>
35                 <h1>Another Index</h1>
36         </body>
37 </html>
38 <!DOCTYPE html>
39 <html>
40         <body>
41                 <h1>Another Index</h1>
42         </body>
43 </html>
44
45 [Client] curl -s localhost:*****/static/css/style.css
46 body {
47         color: blue;
48         padding: 20px;
49 }
50
51 [Client] curl -s localhost:*****/static/js/app.js
52 alert("Hello World!");
53
54 [Client] curl -s localhost:*****/static/hello.html
55 <!DOCTYPE html>
56 <html>
57         <head>
58                 <meta charset="UTF-8">
59
60                 <title>Some Popcorn love</title>
61
62                 <link rel="stylesheet" type="text/css" href="/css/style.css">
63         </head>
64         <body>
65                 <h1>Hello Popcorn!</h1>
66
67                 <img src="/images/trollface.jpg" alt="maybe it's a kitten?" />
68
69                 <script src="/js/app.js"></script>
70         </body>
71 </html>
72
73 [Client] curl -s localhost:*****/static/
74 <!DOCTYPE html>
75 <html>
76         <body>
77                 <h1>Another Index</h1>
78         </body>
79 </html>
80
81 [Client] curl -s localhost:*****/css/not_found.nit
82                 <!DOCTYPE html>
83                 <html>
84                 <head>
85                         <meta charset="utf-8">
86                         <title>Not Found</title>
87                 </head>
88                 <body>
89                 <h1>404 Not Found</h1>
90                 </body>
91                 </html>
92 [Client] curl -s localhost:*****/static/css/not_found.nit
93                 <!DOCTYPE html>
94                 <html>
95                 <head>
96                         <meta charset="utf-8">
97                         <title>Not Found</title>
98                 </head>
99                 <body>
100                 <h1>404 Not Found</h1>
101                 </body>
102                 </html>
103 [Client] curl -s localhost:*****/not_found.nit
104                 <!DOCTYPE html>
105                 <html>
106                 <head>
107                         <meta charset="utf-8">
108                         <title>Not Found</title>
109                 </head>
110                 <body>
111                 <h1>404 Not Found</h1>
112                 </body>
113                 </html>