检测从浏览器下载并获取URL [英] Detect download from browser and get the URL
本文介绍了检测从浏览器下载并获取URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我之前在下载管理器中已经看过这个,但是搜索过并且无法完成它是如何完成的。
如何检测浏览器即将开始下载,从中获取URL它并阻止它继续?在Win32 C ++中请。
解决方案
我想建议使用WinPCap 图书馆。它是一个网络库,可以帮助您嗅探网络流量。您将注册到操作系统,以便您将收到有关每个传入/传出数据包及其内容的通知。然后,您将过滤掉您想要的数据包并检查其内容。
希望这会有所帮助。
祝你好运,
JK
I have seen this done before in a download manager but searched and couldn''t get how it is done.
How can I detect a browser is about to start downloading, get the URL from it and stop it from continuing? In Win32 C++ please.
解决方案
Hi,
well I would recomend to use WinPCap library. It is a networking library that will help you sniff the network traffic. You will register to OS, so that you will receive notification about every incoming/outgoing packet and its conent. Then you will just filter out those packet that you want and examin its content.
Hope this helps.
Best regards,
J.K.
这篇关于检测从浏览器下载并获取URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文