Final patches...

This commit is contained in:
Diego Nehab 2006-04-03 03:10:56 +00:00
parent 7121359526
commit e9d477aba3
6 changed files with 33 additions and 17 deletions

View file

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

View file

@ -1 +1 @@
luasocket:JFMQjUyOPu3yk
luasocket:l8n2npozPB.sQ

View file

@ -22,7 +22,8 @@ http.TIMEOUT = 10
local t = socket.gettime()
host = host or "diego.student.princeton.edu"
--host = host or "diego.student.princeton.edu"
host = host or "dell-diego"
proxy = proxy or "http://localhost:3128"
prefix = prefix or "/luasocket-test"
cgiprefix = cgiprefix or "/luasocket-test-cgi"
@ -125,6 +126,20 @@ assert(r == nil and e == re, tostring(r) ..", " .. tostring(re) ..
" vs " .. tostring(e))
print("ok")
io.write("testing invalid empty port: ")
request = {
url = "http://" .. host .. ":" .. prefix .. "/index.html"
}
expect = {
body = index,
code = 200
}
ignore = {
status = 1,
headers = 1
}
check_request(request, expect, ignore)
------------------------------------------------------------------------
io.write("testing post method: ")
-- wanted to test chunked post, but apache doesn't support it...

View file

@ -83,9 +83,10 @@ r, e = smtp.send{
"<diego@princeton.edu>" },
from = "<diego@princeton.edu>",
source = ltn12.source.chain(source, filter),
--server = "mail.cs.princeton.edu"
server = "localhost",
port = 2525
server = "mail.cs.princeton.edu",
--server = "localhost",
--port = 2525
port = 25
}
print(r, e)