2

我刚刚找到 HttpListener Class ,我已经阅读了 MSDN 上的 API,但我仍然没有得到任何东西:HTTPListener 可以用来嗅探传入/传出的请求*吗?

我的意思是嗅探我网卡上的所有 HTTP 和可能的 HTTPS 数据包,我想要检索的只是访问站点的简单 URL。

4

1 回答 1

3

The short answer is: No.

The long answer is: The HTTPListener-class is used to create a very basic webserver on which you can implement your own methods and services. You might be able to use it to write a proxy and route your http requests through it though but I'm pretty sure that wasn't the main intention of it.

于 2013-11-14T18:42:13.187 回答