> For the complete documentation index, see [llms.txt](https://sunzsh.gitbook.io/xiaoshan.bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunzsh.gitbook.io/xiaoshan.bug/chrome-kai-fa-zhe-zhua-bao-gong-ju-copycurl-de-yi-ge-shi-yong-chang-jing.md).

# chrome开发者抓包工具copy-cURL的一个使用场景

{% embed url="<https://v.douyin.com/r6pGFrH/>" %}

{% embed url="<https://www.bilibili.com/video/BV13a411h7Ki/>" %}

chrome 的开发者工具里抓到的包

可以直接复制成 cURL 的命令

那这个功能我在一个场景下就经常用

比方说这是一个测试环境

然后呢我们就发现

比如说某一个筛选条件

他查询的结果就不太对

然后呢我们想本地调试一下这接口

让他请求一下本地的接口

我们就可以复制成 cURL

然后呢打开终端然后粘贴

然后按 ctrl a （按住回到最上面）

然后 ctrl + 右箭头 来到这，把它改成

本地的 ip

然后呢比如8080，然后回车，这样就行了

当然了 （现在）我本地没有启动任何服务哈
