我正在尝试使用mitmproxy记录每个http站点,但是我的内联脚本发出此错误TypeError:request()缺少1所需的位置参数:'flow'这里是我的代码预览。我的代理设置正确,httplogs.txt文件与内联脚本位于同一目录,但我不明白这个函数中有什么问题。使用mitmproxy内联脚本记录所有http请求
import sys
def request(context,flow):
f = open('httplogs.txt', 'a+')
f.write(flow.request.url + '\n')
f.close()
谢谢。我拉我的头发 – Katz
听起来类似的经验,我的:) – user3041539