-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.py
More file actions
27 lines (26 loc) · 764 Bytes
/
Copy pathproxy.py
File metadata and controls
27 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# from browsermobproxy import Server
#
# class ProxyManager:
#
# __BMP = "C:/Users/Max/Documents/BrowserMob/browsermob-proxy-2.1.4/bin/browsermob-proxy.bat"
#
# def __init__(self):
# self.__server = Server(ProxyManager.__BMP)
# self.__client = None
#
# def start_server(self):
# self.__server.start()
# return self.__server
#
# def start_client(self):
# self.__client = self.__server.create_proxy(
# params={"trustAllServers": True, 'captureHeaders': True, 'captureContent':True}) #remove params and test without
# return self.__client
#
# @property
# def client(self):
# return self.client
#
# @property
# def server(self):
# return self.__server