1、在Charles--Tools下找到Map Local...,点击Add

2、以百度为例Protocol中选择https,Host:*baidu.com(*代表一切),Port、Path、Query先省略,Local path选择自己写的数据(新建tmp.json文件,内容:{“name”:"map local"}),点击OK

在浏览器中访问百度,重定向到本地文件

2、URL解析:https://book.douban.com/subject/36037497/?icn=index-latestbook-subject
·https:使用的协议是https
·book.douban.com:主机地址
·subject/36037497/:目录地址
·?icn=index-latestbook-subject:参数是icn,值是index-latestbook-subject
·端口:http(80),https(443)
在charles中填入对应的参数:

浏览器中访问: https://book.douban.com/subject/36037497/?icn=index-latestbook-subject

网友评论