Dim myCred As New NetworkCredential("USERNAME", "PASSWORD") Dim credsCache As New CredentialCache() credsCache.Add(New Uri(Uri), "Basic", myCred) Dim request As WebRequest = WebRequest.Create(Uri) request.Credentials = credsCache
Dim request As WebRequest Dim credidentials As String = "userName" + ":" + "Password" Authorization = Convert.ToBase64String(Encoding.[Default].GetBytes(credidentials)) 'How do I declare Authorization? request.Headers("Authorization") = "Basic " + Authorization
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.