aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc_cmdline.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-11 16:13:22 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-15 15:51:01 +0200
commita0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e (patch)
treecf3b842c1ad8f7a75d6eb2ffa8063b5385407b5a /libpathod/pathoc_cmdline.py
parent30fbf57e4b72e3947c323d98aee7b2d44663e33c (diff)
downloadmitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.gz
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.bz2
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.zip
http2: add request-response to pathod
Diffstat (limited to 'libpathod/pathoc_cmdline.py')
-rw-r--r--libpathod/pathoc_cmdline.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/libpathod/pathoc_cmdline.py b/libpathod/pathoc_cmdline.py
index dcd75d11..1d0df3b5 100644
--- a/libpathod/pathoc_cmdline.py
+++ b/libpathod/pathoc_cmdline.py
@@ -109,12 +109,11 @@ def args_pathoc(argv, stdout=sys.stdout, stderr=sys.stderr):
help="SSL cipher specification"
)
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(
@@ -156,6 +155,10 @@ def args_pathoc(argv, stdout=sys.stdout, stderr=sys.stderr):
"-x", dest="hexdump", action="store_true", default=False,
help="Output 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:])