]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | print = conn.write || print\r |
2 | \r | |
3 | // send a header\r | |
4 | print('HTTP/1.0 200 OK\r\n');\r | |
5 | print('Content-Type: text/html\r\n');\r | |
6 | print('\r\n');\r | |
7 | \r | |
8 | print("<html><body>\n");\r | |
9 | print("<p>This example page is generated by the ");\r | |
10 | print('<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>');\r | |
11 | print(" with server side javascript.</p>\n");\r | |
12 | \r | |
13 | var d = new Date();\r | |
14 | var n = d.toString(); \r | |
15 | \r | |
16 | print("<p>Server time: " + n + "</p>\n");\r | |
17 | \r | |
18 | print("</body></html>\n");\r | |
19 | \r |