diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-03-14 11:54:47 +1100 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-03-14 11:54:47 +1100 |
commit | 09e995ab5c78b8bd098e1330df7aa40972e0b1bb (patch) | |
tree | 987cca80305d1fbf8b0d5f424f5843478297abe2 /libpathod/cmdline.py | |
parent | 2e64d44aabc41ee93c0a682ce35b34a8716d3b8d (diff) | |
download | mitmproxy-09e995ab5c78b8bd098e1330df7aa40972e0b1bb.tar.gz mitmproxy-09e995ab5c78b8bd098e1330df7aa40972e0b1bb.tar.bz2 mitmproxy-09e995ab5c78b8bd098e1330df7aa40972e0b1bb.zip |
Improvements to pathoc repeat requests
- Pathoc will now keep trying if connections failed
- Add a -w option to specify a wait time between requests
Diffstat (limited to 'libpathod/cmdline.py')
-rw-r--r-- | libpathod/cmdline.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpathod/cmdline.py b/libpathod/cmdline.py index 4a2390ed..7a82a429 100644 --- a/libpathod/cmdline.py +++ b/libpathod/cmdline.py @@ -51,6 +51,10 @@ def go_pathoc(): help='Repeat N times. If 0 repeat for ever.' ) parser.add_argument( + "-w", dest='wait', default=0, type=float, metavar="N", + help='Wait N seconds between each request.' + ) + parser.add_argument( "-r", dest="random", action="store_true", default=False, help=""" Select a random request from those specified. If this is not specified, |