IWebBrowser2 HTTP response headers

荒凉一梦 提交于 2019-12-08 13:55:52

问题


I have the same question that Dragos asked here

"...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..."

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?

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


回答1:


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#.



来源:https://stackoverflow.com/questions/3235747/iwebbrowser2-http-response-headers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!