G
Greg Vereschagin
I cannot get the following code to work when trying to download web
pages through a proxy server:
[1] Dim wrq as Net.WebRequest
[2] Dim wrp as Net.WebResponse
[3] Dim proxyObject as WebProxy
[4] proxyObject = new WebProxy("abc-dc", 8080)
[5] proxyObject.BypassProxyOnLocal = True
[6] GlobalProxySelection.Select = proxyObject
[7] wrq = System.Net.WebRequest.Create(url)
[8] wrp = wrq.GetResponse()
At this point I get a System.Net.WebException = 407 which is a proxy
authentication error.
This code works fine at home (without lines [3] through [6]) where
there is no proxy server to deal with. But at work, I can't get past
the 407 error.
We do not have a full time system admin and the fellow that supports
us is not familiar with VB.net or anything resembling the above code.
I think the problem could be in the name of proxy server "abc-dc".
I've tried some variants but no luck. If the name of the proxy server
doesn't look right, where should look to find it's name. The system
admin believes it is "abc-dc".
Any help would be greatly appreciated.
Thanks,
Greg
pages through a proxy server:
[1] Dim wrq as Net.WebRequest
[2] Dim wrp as Net.WebResponse
[3] Dim proxyObject as WebProxy
[4] proxyObject = new WebProxy("abc-dc", 8080)
[5] proxyObject.BypassProxyOnLocal = True
[6] GlobalProxySelection.Select = proxyObject
[7] wrq = System.Net.WebRequest.Create(url)
[8] wrp = wrq.GetResponse()
At this point I get a System.Net.WebException = 407 which is a proxy
authentication error.
This code works fine at home (without lines [3] through [6]) where
there is no proxy server to deal with. But at work, I can't get past
the 407 error.
We do not have a full time system admin and the fellow that supports
us is not familiar with VB.net or anything resembling the above code.
I think the problem could be in the name of proxy server "abc-dc".
I've tried some variants but no luck. If the name of the proxy server
doesn't look right, where should look to find it's name. The system
admin believes it is "abc-dc".
Any help would be greatly appreciated.
Thanks,
Greg