Skip to content

Commit 888bb80

Browse files
David MaloneyDavid Maloney
authored andcommitted
more comments
1 parent 16b4fb1 commit 888bb80

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/rex/proto/http/client.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ def close
359359
end
360360

361361
#
362-
# Transmit an HTTP request and receive the response
363-
# If persist is set, then the request will attempt
364-
# to reuse an existing connection.
362+
# Sends a request and gets a response back
363+
# If the request is a 401, and we have creds, it will attempt to
364+
# complete authentication and return the final response
365365
#
366366
def send_recv(req, t = -1, persist=false)
367367
opts = req[:opts]
@@ -373,6 +373,11 @@ def send_recv(req, t = -1, persist=false)
373373
res
374374
end
375375

376+
#
377+
# Transmit an HTTP request and receive the response
378+
# If persist is set, then the request will attempt
379+
# to reuse an existing connection.
380+
#
376381
def _send_recv(req, t = -1, persist=false)
377382
if req.kind_of? Hash and req[:string]
378383
req = req[:string]
@@ -608,7 +613,7 @@ def digest_auth(opts={})
608613
# Builds a series of requests to complete Negotiate Auth. Works essentially
609614
# the same way as Digest auth. Same pipelining concerns exist.
610615
#
611-
616+
612617
def negotiate_auth(opts={})
613618
ntlm_options = {
614619
:signing => false,

0 commit comments

Comments
 (0)