diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-11 16:13:22 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-15 15:51:01 +0200 |
commit | a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e (patch) | |
tree | cf3b842c1ad8f7a75d6eb2ffa8063b5385407b5a /libpathod/pathod_cmdline.py | |
parent | 30fbf57e4b72e3947c323d98aee7b2d44663e33c (diff) | |
download | mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.gz mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.bz2 mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.zip |
http2: add request-response to pathod
Diffstat (limited to 'libpathod/pathod_cmdline.py')
-rw-r--r-- | libpathod/pathod_cmdline.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libpathod/pathod_cmdline.py b/libpathod/pathod_cmdline.py index f1bb6982..4343401f 100644 --- a/libpathod/pathod_cmdline.py +++ b/libpathod/pathod_cmdline.py @@ -139,10 +139,11 @@ def args_pathod(argv, stdout=sys.stdout, stderr=sys.stderr): """ ) group.add_argument( - "--sslversion", dest="sslversion", type=int, default=4, - choices=[1, 2, 3, 4], - help=""""Use a specified protocol - TLSv1, SSLv2, SSLv3, SSLv23. Default - to SSLv23.""" + "--sslversion", dest="sslversion", type=str, default='SSLv23', + choices=utils.SSLVERSIONS.keys(), + help="""" + Use a specified protocol - TLSv1.2, TLSv1.1, TLSv1, SSLv3, SSLv2, SSLv23. + Default to SSLv23.""" ) group = parser.add_argument_group( @@ -172,6 +173,12 @@ def args_pathod(argv, stdout=sys.stdout, stderr=sys.stderr): "-x", dest="hexdump", action="store_true", default=False, help="Log request/response in hexdump format" ) + group.add_argument( + "--http2-framedump", dest="http2_framedump", action="store_true", default=False, + help="Output all received & sent HTTP/2 frames" + ) + + args = parser.parse_args(argv[1:]) certs = [] |