如何获得响应头,而用户从网页浏览到的网页? [英] How to get the response headers while the user navigates from page to page?

查看:112
本文介绍了如何获得响应头,而用户从网页浏览到的网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户导航到一个网站注册一个WPF WebBrowser控件。用户注册后,报头的集合被送回非常久远的完成注册页面。结果
我已经试过了导航的事件,并试图在事件参数访问WebResponse的属性,但它总是空。结果
是否有任何其他的方式来访问的头部信息?

I have a WPF webbrowser control which navigates the user to a registration site. After the user registers, a collection of headers are sent back alongwith the "finished registration" page.
I have tried the Navigated event, and tried accessing WebResponse property in the event arguments but it's always null.
Is there any other way to access the headers sent?

推荐答案

相当大量的阅读之后,我想通了,WPF Web浏览器实际上周围的WinForm的Web浏览器围绕COM DLL这inturn包装包装(这甚至用由Internet Explorer)。

After quite a lot of reading, I figured out that WPF web browser actually wraps around the WinForm web browser which inturn wraps around a COM dll (which is even used by Internet Explorer).

现在这个COM DLL提供了许多并非由任何包装控件暴露的接口。因此,那些谁需要更多的控制需要实现这些接口。

Now this COM dll provides a lot of interfaces which are not exposed by any of the wrapper controls. So those who need more control need to implement these interfaces.

我发现它实现了很多接口都整齐地提供了很多功能的浏览器。用它和它的正常工作。 HTTP://www.$c$cproject.com/KB/miscctrl/csEXWB的.aspx

I found a browser which implements a lot of these interfaces and neatly provides a lot functionality. Used it and it's working fine. http://www.codeproject.com/KB/miscctrl/csEXWB.aspx

它谈论implemnting一个PassthroughAPP包来获得响应头。

It talks about implemnting a PassthroughAPP package to get the response headers.

这篇关于如何获得响应头,而用户从网页浏览到的网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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