德尔福。如何监控 IE 正在下载的 URL?
当您在 IE 中打开页面时,它会下载大量文件,包括 CSS、脚本、图片、SWF 等。我需要开发一个小插件来监视所有这些 URL,并保存到文件中。
我在 Delphi 中需要它,但是任何其他编程语言的任何示例都将非常感激。
When you're opening page in IE it downloads lots of files, including CSS, scripts, pictures, SWFs, etc. I need to develop small plugin which will monitor all these URLs and let's say save to file this list.
I need it in Delphi, but any example in any other programming languages will be really appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
即使是 BHO 也不能很好地解决这个问题。从技术上讲,您可以编写一个使用 APP 包装器包装 HTTP 和 HTTPS 协议的 BHO,但这不受支持,会导致性能和崩溃问题,而且非常困难。
如果您使用 .NET,您可以非常轻松地托管 FiddlerCore (www.fiddler2.com/fiddler/core/),并且您可能可以用 Delphi 包装它,但这更多的是用于测试而不是生产用途。
Even a BHO won't really work very well for this. Technically, you could write a BHO that wraps the HTTP and HTTPS protocols using an APP-wrapper, but this is unsupported, causes performance and crashing problems, and is very hard.
If you're using .NET, you can pretty easily host FiddlerCore (www.fiddler2.com/fiddler/core/) and you could probably wrap it with Delphi, but this is meant more for testing than production use.
您需要创建一个浏览器帮助对象(BHO)。我会为您重新标记问题。这是对标记为 BHO 的问题的 SO 搜索:
https://stackoverflow.com/questions/tagged/bho
You need to make a Browser Helper Object (BHO). I'll re-tag the question for you. Here's a SO search for questions tagged BHO:
https://stackoverflow.com/questions/tagged/bho