chrome复制、导出请求

2022-08-21 14:03:41 浏览数 (1)

可以通过右键点击我们的请求,进行重放,这样就能发起相同的请求

也可以复制出来,例如以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)格式复制

然后点击postmanimoprt

选择Raw Text粘贴进去

可以看到轻松导入

0 人点赞