如何在 VB.NET 中随 GET 请求一起发送 cookie?
我需要在 VB.NET 中随每个 GET 请求一起发送 cookie?我已经搜索过代码,但找不到适合我的代码。有人可以给我一个简单的代码来执行此操作吗?谢谢!我们将不胜感激您的所有帮助!
I need to send a cookie along with every GET request in VB.NET? I already searched for codes but I can't find something that works for me. Can someone give me a simple code to do this? Thanks! All of your help will be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“发送 cookie”是什么意思?
Cookie 存储在浏览器中,您可以通过
Request
对象访问它们。您还可以更改 cookie,将其放入 Response 对象。这里有很多例子: http://www.aspnettutorials.com/教程/浏览器/cookie-session-vb.aspx
What do you mean under "send cookies"?
Cookies stored in the browser and you can reach them via
Request
object. You can also change cookies putting it toResponse
object.Here is a lot of examples: http://www.aspnettutorials.com/tutorials/browsers/cookie-session-vb.aspx