HTTPS credentials with proxy?
-
I'm using the System.net.WebClient class to post a file as http through the company firewall to an external company. To get throught the firewall I need to set the proxy creadentials. For http this works fine. My question is that if I want to send over https and need to set basic authentification for the destination system, how do I specify that? Not pretty but can I include it in the pDestination string? If I set the Credentials property of the WebClient object does that overwrite the proxy credentials? ' set proxy Dim vProxy As WebProxy = System.Net.WebProxy.GetDefaultProxy vProxy.Credentials = New NetworkCredential(vUsername, vPassword, vDomain) GlobalProxySelection.Select = vProxy ' send file as http(s) Dim vWebClient As New System.Net.WebClient vResponseArray = vWebClient.UploadFile(pDestination, "POST", pFilePath)