有关 fiddler 如何工作的任何资源/代码?

发布于 2024-07-13 11:56:06 字数 187 浏览 2 评论 0原文

我需要跟踪 http/url 请求 & 使用 C# 从 Windows 窗体应用程序重定向。 它应该同时处理 IE 和 IE。 火狐浏览器。 不确定 Fiddler 是否开源,但如果我没记错的话,它是使用 .NET 编写的。 有关如何监听 http/url 请求的示例代码或在线文章 重定向将不胜感激。

谢谢!

I need to track http/url requests & redirects from a windows forms application using C#. It should handle both IE & firefox. Not sure if Fiddler is open-source but if i'm not mistaken, it's written using .NET. Sample codes or online articles on how to listen to http/url requests & redirects will be appreciated.

Thanks!

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

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

发布评论

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

评论(2

柠栀 2024-07-20 11:56:06

Fiddler 作为标准 HTTP 代理 工作。 这里没有魔法。 有关详细信息,请参阅 HTTP 协议。 在 IE/Firefox 中,您需要将 Fiddler(或您的自定义程序)设置为代理,然后浏览器将使用它来处理所有传出请求。 代理负责将请求转发到正确的服务器,并返回响应。 代理通常用于 1) 缓存、2) 控制访问(并避开防火墙)、3) 调试。

另请参阅 适用于 .Net 的开源代理库,了解 .NET 代理库 (只是快速谷歌搜索......我没有这方面的经验)。

Fiddler works as standard HTTP proxy. There is no magic here. See HTTP protocol for details. In both IE/Firefox, you need to set Fiddler (or your custom program) as proxy, and then browser will use it for all outgoing requests. Proxy is responsible for forwarding request to correct server, and returning response. Proxies are typically used for 1) caching, 2) controlling access (and avoiding firewalls), 3) debugging.

See also Open Source Proxy Library for .Net for .NET proxy library (just quick googling... I have no experience with it).

请别遗忘我 2024-07-20 11:56:06

您可能对新的 FiddlerCore 库感兴趣:http://fiddler.wikidot.com/fiddlercore

You'd probably be interested in the new FiddlerCore library: http://fiddler.wikidot.com/fiddlercore

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