我正在尝试使用用户名和密码打开一个外部网站。我有正确的凭据,但是当我尝试以下代码时,我收到“登录失败:未知用户名或密码错误”错误。
Dim username As String = "username"
Dim password As New System.Security.SecureString
'Set value for SecureString type variable
Dim plainPassword As String = "pass"
For Each c As String In plainPassword.ToCharArray
password.AppendChar(c)
Next c
Dim IEprocess As System.Diagnostics.Process = New System.Diagnostics.Process
IEprocess.StartInfo.FileName = "http://www.website.com/"
IEprocess.StartInfo.UserName = username
IEprocess.StartInfo.Password = password
IEprocess.StartInfo.UseShellExecute = False
IEprocess.Start()
有什么建议么?