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

@ -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...