WebBrowser 控件和 Wininet API
是否可以从 WebBrowser 控件获取准确的所有 Http 请求标头和 Http 响应标头详细信息?
还有什么方法可以从 WebBrowser Control 获取 WinInet 相关的 HINTERNET 句柄?
谢谢, 克里希纳
Is it possible to get the exact all Http Request Header and Http Response Header details from WebBrowser control?
Also is there any means of getting WinInet related HINTERNET handle from WebBrowser Control?
Thanks,
Krishna
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用此库监视发送/获取的 WebBrowser http 请求和数据发送/获取:
Http Monitor for Webbrowser Control
位于此处
http://www.codeproject.com/KB/shell/HttpMonitor.aspx
它是测试版,但对我有用..
有演示示例和源代码。
您必须通过 regsvr32 注册他们的 dll 才能进行演示工作
You can monitor for WebBrowser http requests that are send/get and data send/get with this library:
Http Monitor for Webbrowser Control
it is here
http://www.codeproject.com/KB/shell/HttpMonitor.aspx
it is beta, but works for me..
there are demo sample and source codes.
you must register their dll by regsvr32 for demo working
不,WebBrowser 控件无法做到这一点。
您可以考虑将 FiddlerCore 集成到您的应用程序中;这将使您能够完成您正在尝试做的事情。
No, there's no way to do that with the WebBrowser Control.
You might consider integrating FiddlerCore into your application; that would allow you to accomplish what you are trying to do.