【求助】mitmproxy Python脚本实现maplocal相关

有问题请教一下,问题如下:
本地已保存改动后的json文件,名称为quote01.json,将其保存在桌面,运行对应的mitmproxy 实现maplocal的脚本,脚本可以正常运行,但是使用curl进行测试的时候出现如下错误信息:

curl http://www.baidu.com/xxx/quote01.json -x 127.0.0.1:8999
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /xxx/quote01.json was not found on this server.</p>
</body></html>

完成mitmproxy安装之后,查看对应的版本信息,具体如下:

mitmdump --version
Mitmproxy: 5.3.0
Python:    3.7.1
OpenSSL:   OpenSSL 1.1.1h  22 Sep 2020
Platform:  Darwin-18.7.0-x86_64-i386-64bit

请问一下这跟mitmproxy配置到其他的platform有关系吗(完成下载之后查看平台自动就是这个而不是显示Mac对应的版本(Mac版本为10.14.6))?如果有关系的话有没有解决方式?这样的配置可以实现rewrite 的python脚本


看报错信息,提示的url找不到,核对一下你的url是不是写错了。我遇到过的404几乎都是url的问题