IWebBrowser2的HTTP响应头 [英] IWebBrowser2 HTTP response headers

查看:813
本文介绍了IWebBrowser2的HTTP响应头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

......嗨!我正在开发它承载的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 <一href="http://groups.google.com/group/microsoft.public.inetsdk.programming.mshtml_hosting/browse_frm/thread/8e881e342e0d5f35/7013a517c207d543"相对=nofollow>此处写在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#.

这篇关于IWebBrowser2的HTTP响应头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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