vb.net 如何在 vb 中从 WebBrowser 控件获取 Cookie 值到文本框
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13785024/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to get Cookies Value From WebBrowser Control to Textbox in vb
提问by Sokunthor Tan
I am finding how to get Cookies From WebBrowser Control to TextBox in Form of VB.
我正在寻找如何以 VB 的形式从 WebBrowser Control 获取 Cookies 到 TextBox。
Example cookies that i checked on another software but i need it transfer to TextBox CFID=683314; CFTOKEN=29469955
我在另一个软件上检查过的示例 cookie,但我需要将其传输到 TextBox CFID=683314;CFTOKEN=29469955
Please help.
请帮忙。
回答by Artail
I think this is what you are looking for.
我想这就是你要找的。
TextBox1.Text = WebBrowser1.Document.Cookie
TextBox1.Text = WebBrowser1.Document.Cookie

