@@ -360,8 +360,9 @@ def send_request_raw(opts={}, timeout = 20)
360
360
# Connects to the server, creates a request, sends the request,
361
361
# reads the response
362
362
#
363
- # Passes + opts+ through directly to Rex::Proto::Http::Client#request_cgi.
363
+ # Passes ` opts` through directly to { Rex::Proto::Http::Client#request_cgi} .
364
364
#
365
+ # @return (see Rex::Proto::Http::Client#send_recv))
365
366
def send_request_cgi ( opts = { } , timeout = 20 )
366
367
if datastore [ 'HttpClientTimeout' ] && datastore [ 'HttpClientTimeout' ] > 0
367
368
actual_timeout = datastore [ 'HttpClientTimeout' ]
@@ -401,14 +402,14 @@ def send_request_cgi(opts={}, timeout = 20)
401
402
end
402
403
end
403
404
405
+ # Connects to the server, creates a request, sends the request, reads the
406
+ # response if a redirect (HTTP 30x response) is received it will attempt to
407
+ # follow the direct and retrieve that URI.
404
408
#
405
- # Connects to the server, creates a request, sends the request, reads the response
406
- # if a redirect (HTTP 30x response) is received it will attempt to follow the
407
- # direct and retrieve that URI.
408
- #
409
- # @note The +opts+ will be updated to the updated location and +opts['redirect_uri']+
410
- # will contain the full URI.
409
+ # @note `opts` will be updated to the updated location and
410
+ # `opts['redirect_uri']` will contain the full URI.
411
411
#
412
+ # @return (see #send_request_cgi)
412
413
def send_request_cgi! ( opts = { } , timeout = 20 , redirect_depth = 1 )
413
414
if datastore [ 'HttpClientTimeout' ] && datastore [ 'HttpClientTimeout' ] > 0
414
415
actual_timeout = datastore [ 'HttpClientTimeout' ]
0 commit comments