Managing cookies in a WPF WebBrowser control?

后端 未结 6 698
终归单人心
终归单人心 2020-12-18 03:02

Is there a way to read/write the cookies that a WebBrowser control uses?

I am doing something like this...

string resultHtml;
HttpWebRequest requ         


        
6条回答
  •  悲&欢浪女
    2020-12-18 03:30

    I faced the same issue few days ago. Besides the examples of the previous answers, here is a Win32 wrapper for the WebBrowser control. The advantage of this implementation is that it exposes more options that the default WebBrowser control.

    Unfortunately if It's not WPF native, so you will have to create a wrapper if you're planning to use it in WPF.

    http://code.google.com/p/csexwb2/

提交回复
热议问题