如何在vb.net中通过编码输入用户名和密码 [英] how to enter user name and password through coding in vb.net

查看:204
本文介绍了如何在vb.net中通过编码输入用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜。我正在以win形式创建一个下载管理器,其中有许多URL具有用户名和密码。我想通过编码输入用户名和密码。有没有办法通过编码输入用户名和密码?

hi. i am making a download manager in win form in which there are many URL's which are having user name and password. i want to enter the user name and password through coding. is there is any way to enter user name and password through coding??

推荐答案

你可以使用类 System.Net.HttpWebRequest 使用适当的凭据



http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest。 credentials.aspx [ ^ ],

http:// msdn.microsoft.com/en-us/library/system.net.icredentia ls.aspx [ ^ ]。



-SA
You can use the class System.Net.HttpWebRequest with appropriate credentials:

http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.credentials.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.icredentials.aspx[^].

—SA


这篇关于如何在vb.net中通过编码输入用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆