mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-08-28 06:42:25 +02:00
Final patches...
This commit is contained in:
@@ -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
|
||||
|
@@ -1 +1 @@
|
||||
luasocket:JFMQjUyOPu3yk
|
||||
luasocket:l8n2npozPB.sQ
|
||||
|
@@ -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...
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user