From e9d477aba3bbc084c0a7872e4eaf725e2689e4a6 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 3 Apr 2006 03:10:56 +0000 Subject: Final patches... --- test/httptest.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test/httptest.lua') diff --git a/test/httptest.lua b/test/httptest.lua index c05b4cc..92528b2 100644 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -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... -- cgit v1.2.3-55-g6feb