aboutsummaryrefslogtreecommitdiff
path: root/t/front.tc
diff options
context:
space:
mode:
Diffstat (limited to 't/front.tc')
-rw-r--r--t/front.tc14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/front.tc b/t/front.tc
index 0d7aec3..89e665a 100644
--- a/t/front.tc
+++ b/t/front.tc
@@ -1,4 +1,16 @@
printf("<h1>");
printf("%s", site.name );
printf("</h1>\n");
- printf("Hello world!"); printf("\n");
+ printf("Hello world!"); printf("\n<br>\nRequest method: ");
+printf("%s", getenv("REQUEST_METHOD") );
+printf("<br>\n");
+ 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));
+printf("\n");