The test directory!

master
Diego Nehab 2003-03-21 23:49:18 +00:00
parent cf4d923d70
commit 307603b24d
11 changed files with 6051 additions and 0 deletions

4
test/auth/.htaccess Normal file
View File

@ -0,0 +1,4 @@
AuthName "Test Realm"
AuthType Basic
AuthUserFile /home/diego/tec/luasocket/test/auth/.htpasswd
require valid-user

1
test/auth/.htpasswd Normal file
View File

@ -0,0 +1 @@
luasocket:JFMQjUyOPu3yk

3002
test/auth/index.html Normal file

File diff suppressed because it is too large Load Diff

6
test/cgi/cat Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
echo Content-type: text/plain
echo
cat > /tmp/luasocket.cat.tmp
cat /tmp/luasocket.cat.tmp

5
test/cgi/cat-index-html Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
echo Content-type: text/plain
echo
cat ../index.html

5
test/cgi/env Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
echo Content-type: text/plain
echo
env

4
test/cgi/query-string Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo Content-type: text/plain
echo
echo $QUERY_STRING

3
test/cgi/redirect-loop Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo Location: http://$HTTP_HOST$REQUEST_URI
echo

4
test/cgi/request-uri Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo Content-type: text/plain
echo
echo $REQUEST_URI

3002
test/index.html Normal file

File diff suppressed because it is too large Load Diff

15
test/upload.html Normal file
View File

@ -0,0 +1,15 @@
<html>
<head>
<title>POST test</title>
</head>
<body>
<form action='http://localhost/luasocket-cgi-bin/cat-stdin' enctype='multipart/form-data' method=POST>
<center>
<input type="file" name="attach">
<p>
<input type=submit name=sendmail value="send">
</center>
</form>
</body>
</html>