简体   繁体   English

将CookieContainer与WebBrowser控件一起使用?

[英]Use CookieContainer with WebBrowser control?

I've created a CookieContainer and stored the cookies from a HttpWebRequest in it. 我已经创建了一个CookieContainer并将HttpWebRequest中的cookie存储在其中。 Is there a way I can use this CookieContainer on a WebBrowser control? 有没有办法可以在WebBrowser控件上使用此CookieContainer?

Thanks for the help. 谢谢您的帮助。

您可以使用GetCookieHeader方法从容器中获取Cookie值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM