diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/civetweb/test/page3.ssjs | |
parent | Initial commit. (diff) | |
download | ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/civetweb/test/page3.ssjs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/civetweb/test/page3.ssjs b/src/civetweb/test/page3.ssjs new file mode 100644 index 00000000..71e55e34 --- /dev/null +++ b/src/civetweb/test/page3.ssjs @@ -0,0 +1,61 @@ +print = conn.write || print + +opts = [ +"cgi_pattern", +"cgi_environment", +"put_delete_auth_file", +"cgi_interpreter", +"protect_uri", +"authentication_domain", +"ssi_pattern", +"throttle", +"access_log_file", +"enable_directory_listing", +"error_log_file", +"global_auth_file", +"index_files", +"enable_keep_alive", +"access_control_list", +"extra_mime_types", +"listening_ports", +"document_root", +"ssl_certificate", +"num_threads", +"run_as_user", +"url_rewrite_patterns", +"hide_files_patterns", +"request_timeout_ms", +"websocket_timeout_ms", +"decode_url", +"lua_preload_file", +"lua_script_pattern", +"lua_server_page_pattern", +"_experimental_duktape_script_pattern", +"websocket_root", +"lua_websocket_pattern", +"access_control_allow_origin", +"error_pages", +"_unknown__option" +] + +// send a header +print('HTTP/1.0 200 OK\r\n'); +print('Content-Type: text/html\r\n'); +print('\r\n'); + +print("<html><body>\n"); +print("<p>This example page is generated by the "); +print('<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>'); +print(" with server side javascript.</p>\n"); + +for (var i=0; i < opts.length; i++) { + var o = opts[i]; + var n = civetweb.getoption(o); + if (typeof(n) == "string") { + print("<p>Option " + o + " = " + n + "</p>\n"); + } else { + print("<p>Option " + o + " not known</p>\n"); + } +} + +print("</body></html>\n"); |