summaryrefslogtreecommitdiff
path: root/swat/esptest/showvars.esp
diff options
context:
space:
mode:
Diffstat (limited to 'swat/esptest/showvars.esp')
-rw-r--r--swat/esptest/showvars.esp35
1 files changed, 35 insertions, 0 deletions
diff --git a/swat/esptest/showvars.esp b/swat/esptest/showvars.esp
new file mode 100644
index 0000000000..04bfb7b1f6
--- /dev/null
+++ b/swat/esptest/showvars.esp
@@ -0,0 +1,35 @@
+<HTML>
+<TITLE>
+Samba4 ESP test
+</TITLE>
+<BODY>
+<h1>Samba4 showvars test</h1>
+
+<%
+ function showArray(name, array) {
+ write("<h3>Array: " + name + "</h3>\n");
+ if (array == undefined) {
+ write("undefined<br>\n");
+ } else {
+ for (v in array) {
+ write(name + "[" + v + "]=" + array[v] + "<br>\n");
+ }
+ }
+ }
+
+ showArray("headers", headers);
+ showArray("application", application);
+ showArray("cookies", cookies);
+ showArray("files", files);
+ showArray("request", request);
+ showArray("server", server);
+ showArray("session", session);
+%>
+
+<form name="Cancel" method="POST" action="index.esp">
+ <input name="submit" type="submit" value="Cancel"><br>
+</form>
+
+</ul>
+</BODY>
+</HTML>