Trying to get connect-with-timeout to work. Darwin works...
This commit is contained in:
parent
02ef4e7daa
commit
c8d58798f0
14 changed files with 232 additions and 198 deletions
|
@ -314,9 +314,10 @@ body = socket.http.get {
|
|||
check(body == index)
|
||||
|
||||
io.write("testing HEAD method: ")
|
||||
socket.http.TIMEOUT = 1
|
||||
response = socket.http.request {
|
||||
method = "HEAD",
|
||||
url = "http://www.tecgraf.puc-rio.br/~diego/"
|
||||
url = "http://www.cs.princeton.edu/~diego/"
|
||||
}
|
||||
check(response and response.headers)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue