K
kieran
Hi,
I am trying to download a file from the Internet. The below code
works fine with no proxy server but I am behind a proxy server at work
and need to figure out how to include it in the code.
<code>
Dim wc As New System.Net.WebClient
wc.DownloadFile("http://www.google.ie/images/hp0.gif", _
"C:\inetpub\wwwroot\bin\google.gif")
</code>
I have been looking all over google and am trying the following code
but as i am not familar with vb.net i can not get the structure right
or am not sure if this is the way to do it.
<code>
dim ProxyObject as New WebProxy= new
webProxy(Http://proxyserverIP:8080,true)
dim cred as NetworkCredential= new
NetworkCredential("User","password","domain")
ProxyObject.Credentials=cred
GlobalProxySelection.Select=proxyObject
<code>
Thanks for any and all help.
I am trying to download a file from the Internet. The below code
works fine with no proxy server but I am behind a proxy server at work
and need to figure out how to include it in the code.
<code>
Dim wc As New System.Net.WebClient
wc.DownloadFile("http://www.google.ie/images/hp0.gif", _
"C:\inetpub\wwwroot\bin\google.gif")
</code>
I have been looking all over google and am trying the following code
but as i am not familar with vb.net i can not get the structure right
or am not sure if this is the way to do it.
<code>
dim ProxyObject as New WebProxy= new
webProxy(Http://proxyserverIP:8080,true)
dim cred as NetworkCredential= new
NetworkCredential("User","password","domain")
ProxyObject.Credentials=cred
GlobalProxySelection.Select=proxyObject
<code>
Thanks for any and all help.