aboutsummaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'test/cgi')
-rwxr-xr-xtest/cgi/cat6
-rwxr-xr-xtest/cgi/cat-index-html5
-rwxr-xr-xtest/cgi/env5
-rwxr-xr-xtest/cgi/query-string4
-rwxr-xr-xtest/cgi/redirect-loop3
-rwxr-xr-xtest/cgi/request-uri4
6 files changed, 27 insertions, 0 deletions
diff --git a/test/cgi/cat b/test/cgi/cat
new file mode 100755
index 0000000..8d41255
--- /dev/null
+++ b/test/cgi/cat
@@ -0,0 +1,6 @@
1#!/bin/sh
2echo Content-type: text/plain
3echo
4
5cat > /tmp/luasocket.cat.tmp
6cat /tmp/luasocket.cat.tmp
diff --git a/test/cgi/cat-index-html b/test/cgi/cat-index-html
new file mode 100755
index 0000000..7595043
--- /dev/null
+++ b/test/cgi/cat-index-html
@@ -0,0 +1,5 @@
1#!/bin/sh
2echo Content-type: text/plain
3echo
4
5cat ../index.html
diff --git a/test/cgi/env b/test/cgi/env
new file mode 100755
index 0000000..412a716
--- /dev/null
+++ b/test/cgi/env
@@ -0,0 +1,5 @@
1#!/bin/sh
2echo Content-type: text/plain
3echo
4
5env
diff --git a/test/cgi/query-string b/test/cgi/query-string
new file mode 100755
index 0000000..2342af5
--- /dev/null
+++ b/test/cgi/query-string
@@ -0,0 +1,4 @@
1#!/bin/sh
2echo Content-type: text/plain
3echo
4echo $QUERY_STRING
diff --git a/test/cgi/redirect-loop b/test/cgi/redirect-loop
new file mode 100755
index 0000000..bd32f20
--- /dev/null
+++ b/test/cgi/redirect-loop
@@ -0,0 +1,3 @@
1#!/bin/sh
2echo Location: http://$HTTP_HOST$REQUEST_URI
3echo
diff --git a/test/cgi/request-uri b/test/cgi/request-uri
new file mode 100755
index 0000000..20ebe9f
--- /dev/null
+++ b/test/cgi/request-uri
@@ -0,0 +1,4 @@
1#!/bin/sh
2echo Content-type: text/plain
3echo
4echo $REQUEST_URI