aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
Diffstat (limited to 't/front.t')
-rw-r--r--t/front.t16
1 files changed, 15 insertions, 1 deletions
diff --git a/t/front.t b/t/front.t
index ed6fbf8..0a372a6 100644
--- a/t/front.t
+++ b/t/front.t
@@ -1,2 +1,16 @@
<h1><%= site.name %></h1>
-<% printf("Hello world!"); %> \ No newline at end of file
+<% printf("Hello world!"); %>
+<br>
+Request method: <%= getenv("REQUEST_METHOD") %>
+<br>
+<%
+ char *a, *b, *bv;
+ a = nextparam(512);
+ printf("%s (%d)<br>", a, TRUNCATED(a));
+ b = nextparam(512);
+ printf("%s (%d)<br>", b, TRUNCATED(b));
+ bv = split(b);
+ printf("'%s' contains '%s'<br>", b, bv);
+ printf("Next: %s\n", nextparam(512));
+ printf("Next: %s\n", nextparam(512));
+%> \ No newline at end of file