有没有办法发现浏览器在导航时发送的特定 HTTP 请求?

发布于 2024-12-05 18:29:35 字数 210 浏览 3 评论 0原文

这个问题很简单。我想知道是否有方法可以发现浏览器在导航时发送的 HTTP 请求。例如,当我单击发送 PUT 方法的某个链接时会发生什么?我的意思是,我希望能够确定我的浏览器发送到该网站的确切 HTTP 请求。此外,我想稍后在 Curl 上重现该请求。基本上,我想检查浏览器发送的请求,以便稍后可以通过 Curl 命令(命令,而不是库)自动执行该任务。

提前致谢!

费尔南多.

The question is pretty straightforward. I want to know if there are ways of discovering the HTTP requests my browser sends while I navigate. For instance, what happens when I click on a certain link which sends a PUT method? I mean, I wish I could determine the exact HTTP request that my browser sends to that website. Further, I want to, later, reproduce that request on Curl. Basically, I want to inspect requests my browser sends so I can automate that task later through the Curl command (command, not library).

Thanks in advance!

Fernando.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

各空 2024-12-12 18:29:35

Fiddler 正是你想要的。它设置一个代理,可以监视来自浏览器的 http 通信。
http://www.fiddler2.com/fiddler2/

Fiddler does exactly what you want. It sets up a proxy that can monitor http communication from your browser.
http://www.fiddler2.com/fiddler2/

零度℉ 2024-12-12 18:29:35

您可能需要 Firefox 的 Firebug 扩展。它可以显示很多正在发生的事情,并且您可以通过安装更多扩展来添加更多选项。

另一方面,您可以使用 wireshark 捕获进出计算机的流量。
然后你可以使用过滤器来保存相关的数据包(pcap通常是存储数据包的格式)。
稍后,您可以使用 tcpreplay 等工具重播数据包。

您可以使用 backtrack linux (live cd/usb) 尝试一下。
现在应该也有一些适用于 Windows 的新工具。 :)

You would want the Firebug extesion for Firefox. It can show a lot of what is happening, and you can add more options by installing more extensions.

On the other hand, you can use wireshark to capture the traffic to and from your computer.
Then you can use filters to save the relevant packets (pcap is often the format for storing the packets).
Later, you can replay the packets using tools like tcpreplay.

You could try it out with backtrack linux (live cd/usb).
And nowadays there should be some new tools for windows also. :)

她说她爱他 2024-12-12 18:29:35

EO2 和 JohnnyC 是正确的。 Fiddler、WireShark、FireBug(FireFox 插件)等都是您要寻找的。您可以免费使用它们。

WireShark 将捕获您盒子上的所有传入和传出流量。您可以监听任何端口、过滤数据等。FireBug

将捕获传出和传入的数据流以及每个请求的原始数据(XML、JSON、图像等)。

如果您不使用 FireFox,Fiddler 非常适合在单独的应用程序中跟踪 Web 数据。

EO2 and JohnnyC are correct. Fiddler, WireShark, FireBug (FireFox addon), etc. are what you are going to look for. You can use them free of charge.

WireShark will capture all incoming and outgoing traffic on your box. You can listen on any port, filter data etc.

FireBug will capture outgoing and incoming data streams, the raw data (XML, JSON, images etc.) for each request.

Fiddler is great for tracking web data in a seperate application if you do not use FireFox.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文