Loop until a non-100 is found or the resp parser fails

git-svn-id: file:///home/svn/framework3/trunk@7800 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-10 16:57:21 +00:00
parent 006d5d51fc
commit 1c98368351
1 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ module Exploit::Remote::HttpClient
c = connect(opts)
r = c.request_raw(opts)
resp = c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout)
if(resp and resp.code == 100)
while(resp and resp.code == 100)
resp = c.reread_response(resp, opts[:timeout] ? opts[:timeout] : timeout)
end
resp
@ -212,7 +212,7 @@ module Exploit::Remote::HttpClient
c = connect(opts)
r = c.request_cgi(opts)
resp = c.send_recv(r, opts[:timeout] ? opts[:timeout] : timeout)
if(resp and resp.code == 100)
while(resp and resp.code == 100)
resp = c.reread_response(resp, opts[:timeout] ? opts[:timeout] : timeout)
end
resp