add testr
This commit is contained in:
parent
87755c33cb
commit
069eecd12a
|
|
@ -49,14 +49,9 @@ class Listener:
|
||||||
ctx.log.error('mitmproxy intercept http error:' + repr(e))
|
ctx.log.error('mitmproxy intercept http error:' + repr(e))
|
||||||
|
|
||||||
def response(self, flow):
|
def response(self, flow):
|
||||||
response = flow.response
|
resp = flow.response
|
||||||
response_text = response.text
|
print('=====>', resp)
|
||||||
log_info = ctx.log.info
|
print("--=-====>content===?", resp.content)
|
||||||
print('=====>', response)
|
|
||||||
print("--=-====>content===?", response.content)
|
|
||||||
print(response_text, "====>text")
|
|
||||||
with open('ut_log.text', 'wb') as f:
|
|
||||||
f.write(response.content)
|
|
||||||
|
|
||||||
|
|
||||||
class TlsStrategy(ABC):
|
class TlsStrategy(ABC):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue