可以通过右键点击我们的请求,进行重放,这样就能发起相同的请求
也可以复制出来,例如以fetch
格式复制
复制出来后,粘贴是这个样子:
代码语言:javascript复制fetch("https://api.bilibili.com/x/space/acc/info?mid=34830549&jsonp=jsonp", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "zh-CN,zh;q=0.9",
"cache-control": "no-cache",
"pragma": "no-cache",
"sec-ch-ua": "" Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""Windows"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://space.bilibili.com/34830549?spm_id_from=333.1007.0.0",
"referrerPolicy": "no-referrer-when-downgrade",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "include"
});
我们可以发送给别人,让别人粘贴在浏览器的控制台进行执行
粘贴完了还可以对参数进行修改再提交
我们还可以以cURL(bash)
格式复制
然后点击postman
的imoprt
选择Raw Text
粘贴进去
可以看到轻松导入