Using client As New WebClient()
Dim responseArray As Byte() = client.UploadFile(strUrl, strFileToUpload)
End Using
如何使用proxy
来修改上述内容?在上述方案中指定proxy server
和port
的最佳方式是什么?
答案 0 :(得分:0)
在WebClient对象构建后立即添加
client.Proxy = New WebProxy("YourProxyServerName", 80)