diff options
Diffstat (limited to 'test/cgi')
-rwxr-xr-x | test/cgi/cat | 6 | ||||
-rwxr-xr-x | test/cgi/cat-index-html | 5 | ||||
-rwxr-xr-x | test/cgi/env | 5 | ||||
-rwxr-xr-x | test/cgi/query-string | 4 | ||||
-rwxr-xr-x | test/cgi/redirect-loop | 3 | ||||
-rwxr-xr-x | test/cgi/request-uri | 4 |
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 | ||
2 | echo Content-type: text/plain | ||
3 | echo | ||
4 | |||
5 | cat > /tmp/luasocket.cat.tmp | ||
6 | cat /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 | ||
2 | echo Content-type: text/plain | ||
3 | echo | ||
4 | |||
5 | cat ../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 | ||
2 | echo Content-type: text/plain | ||
3 | echo | ||
4 | |||
5 | env | ||
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 | ||
2 | echo Content-type: text/plain | ||
3 | echo | ||
4 | echo $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 | ||
2 | echo Location: http://$HTTP_HOST$REQUEST_URI | ||
3 | echo | ||
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 | ||
2 | echo Content-type: text/plain | ||
3 | echo | ||
4 | echo $REQUEST_URI | ||