0
Using client As New WebClient()
    Dim responseArray As Byte() = client.UploadFile(strUrl, strFileToUpload)
End Using

How does the above need to be modified in order to use a proxy? What is the best way to specify the proxy server and port in the above scenario?

CJ7
  • 22,579
  • 65
  • 193
  • 321

1 Answers1

0

Add this right after your WebClient object construction

client.Proxy = New WebProxy("YourProxyServerName", 80)
Aram Tchekrekjian
  • 925
  • 11
  • 26