diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-17 04:04:55 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-17 04:04:55 +0000 |
commit | 4d455c6206747ca65b14d65f75d34e16450d352b (patch) | |
tree | 4607fc690526e4d227e5c5148025ffa9ba879843 /test | |
parent | 65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3 (diff) | |
download | luasocket-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.lua | 6 |
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 | ||
23 | local t = socket.gettime() | 23 | local t = socket.gettime() |
24 | 24 | ||
25 | host = host or "diego.student.princeton.edu" | 25 | host = host or "localhost" -- "diego.student.princeton.edu" |
26 | proxy = proxy or "http://localhost:3128" | 26 | proxy = proxy or "http://localhost:3128" |
27 | prefix = prefix or "/luasocket-test" | 27 | prefix = prefix or "/luasocket-test" |
28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
@@ -146,6 +146,7 @@ ignore = { | |||
146 | check_request(request, expect, ignore) | 146 | check_request(request, expect, ignore) |
147 | 147 | ||
148 | ------------------------------------------------------------------------ | 148 | ------------------------------------------------------------------------ |
149 | --[[ | ||
149 | io.write("testing proxy with post method: ") | 150 | io.write("testing proxy with post method: ") |
150 | request = { | 151 | request = { |
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 | } |
165 | check_request(request, expect, ignore) | 166 | check_request(request, expect, ignore) |
167 | ]] | ||
166 | 168 | ||
167 | ------------------------------------------------------------------------ | 169 | ------------------------------------------------------------------------ |
168 | io.write("testing simple post function: ") | 170 | io.write("testing simple post function: ") |
@@ -249,6 +251,7 @@ ignore = { | |||
249 | check_request(request, expect, ignore) | 251 | check_request(request, expect, ignore) |
250 | 252 | ||
251 | ------------------------------------------------------------------------ | 253 | ------------------------------------------------------------------------ |
254 | --[[ | ||
252 | io.write("testing proxy with redirection: ") | 255 | io.write("testing proxy with redirection: ") |
253 | request = { | 256 | request = { |
254 | url = "http://" .. host .. prefix, | 257 | url = "http://" .. host .. prefix, |
@@ -263,6 +266,7 @@ ignore = { | |||
263 | headers = 1 | 266 | headers = 1 |
264 | } | 267 | } |
265 | check_request(request, expect, ignore) | 268 | check_request(request, expect, ignore) |
269 | ]] | ||
266 | 270 | ||
267 | ------------------------------------------------------------------------ | 271 | ------------------------------------------------------------------------ |
268 | io.write("testing automatic auth failure: ") | 272 | io.write("testing automatic auth failure: ") |