我需要跟踪 http/url 请求 &使用 C# 从 Windows 窗体应用程序重定向.它应该处理 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.
谢谢!
推荐答案Fiddler 作为标准 HTTP proxy.这里没有魔法.有关详细信息,请参阅 HTTP 协议.在 IE/Firefox 中,您需要将 Fiddler(或您的自定义程序)设置为代理,然后浏览器将使用它来处理所有传出请求.代理负责将请求转发到正确的服务器,并返回响应.代理通常用于 1) 缓存,2) 控制访问(并避开防火墙),3) 调试.
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.
另请参阅.Net 的开源代理库,了解.NET 代理库(只是快速搜索......我没有经验).
See also Open Source Proxy Library for .Net for .NET proxy library (just quick googling... I have no experience with it).
更多推荐
关于提琴手如何工作的任何资源/代码?
发布评论