开发者

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

开发者 https://www.devze.com 2023-01-02 22:22 出处:网络
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 conversatio

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

精彩评论

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