IWebBrowser2的HTTP响应头HTTP

由网友(久居深海蓝透人心)分享简介:我有同样的疑问,德拉戈什这里问 ......嗨!我正在开发它承载的web浏览器控件的应用程序。我得到通过IWebBrowser2接口访问它。有没有的方式来访问编程的响应头......"...Hi! I'm developing an application which hosts an web browser...

我有同样的疑问,德拉戈什这里问

......嗨!我正在开发它承载的web浏览器控件的应用程序。 我得到通过IWebBrowser2接口访问它。有没有 的方式来访问编程的响应头......

"...Hi! I'm developing an application which hosts an web browser control. I'm getting access to it through IWebBrowser2 interface. Is there any way to have access programatically to the responses header..."

(2003年)的溶液似乎是使用直通异步插入协议(APP)的处理程序。该解决方案presented 此处写在C ++ / ATL,所以我在想,如果有一个C#版本的呢?

The solution (from 2003) seems to be using an passthrough Asynchronous Pluggable Protocol (APP) handlers. The solution presented here was written in C++/ATL so I was wondering if there is an c# version of this?

请注意,我已经能够从IWebBrowser2的(和华廷)获得cookie值,问题是获得的原始消息头值

Note that I'm already able to get the cookie values from IWebBrowser2 (and WatiN), the issue is getting the raw headers values

推荐答案

我还没有看到一个纯C#实现了APP的永远。 $ C $的CProject发生了最完整的C#web浏览器的包装控制项目文章很长一段时间。它应该允许您访问通过C#响应报头信息,但是应用程序是不是在C#。

I have not seen a pure-C# implementation of an APP ever. CodeProject has had the the most complete C# webbrowser wrapper control project article for a long time. It should allow you to access the response headers information via C#, however the APP is not in C#.

阅读全文

相关推荐

最新文章