如何捕获http数据包并将其保存为网页? [英] how to capture http packet and save them as web page?

查看:164
本文介绍了如何捕获http数据包并将其保存为网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何捕获http数据包并将其保存为网页?

推荐答案

嗯,你需要 WinPcap [ ^ ]首先,你需要一个托管的包装库,以便在C#中更容易使用,比如 SharpPcap [ ^ ]



然后你将编写代码来捕获数据包,过滤掉你需要的东西,处理结果,将一些数据格式化为可用的形式,然后在网页中显示它们。



究竟怎么做完全取决于你和你想在这个应用程序中做什么,所以不可能比这更准确。



祝你有愉快的一天!
Well, you're going to need WinPcap[^] first, then you're going to need a managed wrapper library to make it easier to use in C#, like SharpPcap[^]

Then you're going to write code to capture packets, filter out what you need, process the results, format some data into a usable form, then display them in a web page.

Exactly how to do that depends entirely on you and what you want to do in this application so it's impossible to be more exact than this.

Have a nice day!


这篇关于如何捕获http数据包并将其保存为网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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