From 5dc92d5fecd7701b88858b12862e0b28a664ae9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E9=83=A8=20=E6=82=A0=E4=B8=96?= Date: Fri, 7 Sep 2018 15:21:08 +0900 Subject: [PATCH] set static option: trust all servers for use https web connection --- browsermobproxy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browsermobproxy/client.py b/browsermobproxy/client.py index 8a3dd3b..19dd309 100644 --- a/browsermobproxy/client.py +++ b/browsermobproxy/client.py @@ -28,7 +28,7 @@ def __init__(self, url, params=None, options=None): if 'existing_proxy_port_to_use' in options: self.port = options['existing_proxy_port_to_use'] else: - resp = requests.post('%s/proxy' % self.host + urlparams) + resp = requests.post('%s/proxy' % self.host + urlparams, {"trustAllServers": True}) content = resp.content.decode('utf-8') try: jcontent = json.loads(content)