@@ -72,6 +72,9 @@ function __main__() {
72
72
# shellcheck disable=SC2034
73
73
local _destination_host=" "
74
74
75
+ # Default `curl timers` variables.
76
+ local _curl_timers=" 0"
77
+
75
78
# Default 'ssl' variables.
76
79
local ssl_state=" 0"
77
80
@@ -388,9 +391,9 @@ function __main__() {
388
391
389
392
# Specifies the call parameters of the script, the exact description
390
393
# can be found in _help_ and file README.md.
391
- local _short_opt=" u:shbM:H:p:r:i:a "
394
+ local _short_opt=" u:shbM:H:p:r:i:ta "
392
395
local _long_opt=" help,version,examples,url:,ssl,headers,body,"
393
- _long_opt+=" req-method:,req-header:,proxy:,resolve:,iface:,"
396
+ _long_opt+=" req-method:,req-header:,proxy:,resolve:,iface:,timers, "
394
397
_long_opt+=" all-scans,testssl,observatory,ssllabs,mixed-content,"
395
398
_long_opt+=" nse,waf,dns,http2,conn-debug,ssl-bin:,ssl-debug,"
396
399
_long_opt+=" cache-bypass:,user-agent:,referer:,auth:,httpv:,tlsv:,ciph:,"
@@ -503,6 +506,12 @@ function __main__() {
503
506
504
507
shift 2 ;;
505
508
509
+ -t|--timers)
510
+
511
+ export _curl_timers=1
512
+
513
+ shift ;;
514
+
506
515
-a|--all-scans)
507
516
508
517
export all_scans_state=1
@@ -1046,6 +1055,12 @@ function __main__() {
1046
1055
1047
1056
fi
1048
1057
1058
+ if [[ " $_curl_timers " -eq 1 ]] ; then
1059
+
1060
+ CURL_TIMERS=" on"
1061
+
1062
+ fi
1063
+
1049
1064
if [[ " $referer_state " -eq 1 ]] ; then
1050
1065
1051
1066
_referer_curl=" --referer $_referer "
0 commit comments