aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-17 04:04:55 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-06-17 04:04:55 +0000
commit4d455c6206747ca65b14d65f75d34e16450d352b (patch)
tree4607fc690526e4d227e5c5148025ffa9ba879843 /test
parent65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3 (diff)
downloadluasocket-4d455c6206747ca65b14d65f75d34e16450d352b.tar.gz
luasocket-4d455c6206747ca65b14d65f75d34e16450d352b.tar.bz2
luasocket-4d455c6206747ca65b14d65f75d34e16450d352b.zip
Using core.so instead of csocket.so and cmime.so.
Diffstat (limited to 'test')
-rw-r--r--test/httptest.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 963b947..86f14a4 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -22,7 +22,7 @@ http.TIMEOUT = 10
22 22
23local t = socket.gettime() 23local t = socket.gettime()
24 24
25host = host or "diego.student.princeton.edu" 25host = host or "localhost" -- "diego.student.princeton.edu"
26proxy = proxy or "http://localhost:3128" 26proxy = proxy or "http://localhost:3128"
27prefix = prefix or "/luasocket-test" 27prefix = prefix or "/luasocket-test"
28cgiprefix = cgiprefix or "/luasocket-test-cgi" 28cgiprefix = cgiprefix or "/luasocket-test-cgi"
@@ -146,6 +146,7 @@ ignore = {
146check_request(request, expect, ignore) 146check_request(request, expect, ignore)
147 147
148------------------------------------------------------------------------ 148------------------------------------------------------------------------
149--[[
149io.write("testing proxy with post method: ") 150io.write("testing proxy with post method: ")
150request = { 151request = {
151 url = "http://" .. host .. cgiprefix .. "/cat", 152 url = "http://" .. host .. cgiprefix .. "/cat",
@@ -163,6 +164,7 @@ ignore = {
163 headers = 1 164 headers = 1
164} 165}
165check_request(request, expect, ignore) 166check_request(request, expect, ignore)
167]]
166 168
167------------------------------------------------------------------------ 169------------------------------------------------------------------------
168io.write("testing simple post function: ") 170io.write("testing simple post function: ")
@@ -249,6 +251,7 @@ ignore = {
249check_request(request, expect, ignore) 251check_request(request, expect, ignore)
250 252
251------------------------------------------------------------------------ 253------------------------------------------------------------------------
254--[[
252io.write("testing proxy with redirection: ") 255io.write("testing proxy with redirection: ")
253request = { 256request = {
254 url = "http://" .. host .. prefix, 257 url = "http://" .. host .. prefix,
@@ -263,6 +266,7 @@ ignore = {
263 headers = 1 266 headers = 1
264} 267}
265check_request(request, expect, ignore) 268check_request(request, expect, ignore)
269]]
266 270
267------------------------------------------------------------------------ 271------------------------------------------------------------------------
268io.write("testing automatic auth failure: ") 272io.write("testing automatic auth failure: ")