开发者

How to get response headers from WebBrowser control in .NET?

After WebBr开发者_运维技巧owser.Navigate() how to retreive response headers returned by server ?


You can register a temporary pluggable namespace handler for the http protocol to record the conversations with the server so you can look up them when you need to. See http://google-gears.googlecode.com/svn/trunk/gears/localserver/ie/http_handler_ie.cc and http://www.codeproject.com/KB/miscctrl/csEXWB.aspx for examples.


I don't think that's possible. A web page is made up of many HTTP requests and responses. You'd have to download the HTML yourself with HttpWebRequest. Its Headers property gives you access to the response headers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜