Erdenemandal Posted June 21, 2005 Posted June 21, 2005 Hi, All I have a Problem with Proxy. I want to download file from a Server. But when I using proxy it gives me "The remote server returned an error (407) Proxy authentication Required" error message. This is my code. Dim wclient As New System.Net.WebClient If mySettings.mProxy = 1 Then System.Net.GlobalProxySelection.Select = New System.Net.WebProxy("http://" & mySettings.mProxyIP & ":" & mySettings.mProxyPort) wclient.Credentials = New System.Net.NetworkCredential(mySettings.mProxyName, mySettings.mProxyPass) End If wclient.DownloadFile(pathUpdate & "lastVersion.ini", mySettingsPath & "lastVersion.ini") Catch ex As Exception MsgBox(" lasVersion : " & ex.Message) End Try Please help me. Tell me how can I download file with Proxy Thanks, Erdenemandal Quote
Administrators PlausiblyDamp Posted June 21, 2005 Administrators Posted June 21, 2005 IIRC you need to set the credentials for the proxy rather than the WebClient. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.