# 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，然后回车，这样就行了

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/chrome-kai-fa-zhe-zhua-bao-gong-ju-copycurl-de-yi-ge-shi-yong-chang-jing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
