捕获HTTP请求 [英] Capturing HTTP requests

查看:133
本文介绍了捕获HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来监控和使用C#捕获从一台机器所有传出的HTTP请求?

Is there a way to monitor and capture all outgoing HTTP requests from a machine using C#?

我需要一个独立于浏览器的方式记录访问的网址。

I need a browser independent way of logging visited URLs.

推荐答案

您可能希望使用现有的网络接口捕捉像PCAP或WinPcap的图书馆这样做。
自己重写所有必需的东西将是相当昂贵的时间。

You may want to use existing network interfaces capturing libraries like pcap or winpcap to do so. Rewriting all the necessary stuff by yourself would be quite time expensive.

链接到的 PCAP

链接 WinPcap的

编辑:刚才看见有人还写了C#绑定WinPcap的: SharpPcap

Edit : Just saw someone also wrote the C# bindings to winpcap : SharpPcap

这篇关于捕获HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆