work with proxies and HttpWebRequests

fastnick94

New member
Joined
Dec 23, 2008
Messages
1
Programming Experience
5-10
Hello

I have been searching for hours on how to use proxies in VB.Net and finally i just gave up and came here.

I am trying to send httpwebrequest's but i would also like to use with proxies.

I would like to send this HttpWebRequest behind a proxy

VB.NET:
Dim objHTTPRequest As HttpWebRequest

objHTTPRequest = System.Net.WebRequest.Create("http://www.example.com")
I have tried things like:

VB.NET:
Dim currentProxy As New WebProxy(58.211.113.227, 8080)

objHTTPRequest.Proxy = currentProxy
Nothing seems to work. I would like to learn overall usage of proxies in VB.net

Thank,
Nick
 

Spilled

Member
Joined
Nov 28, 2008
Messages
17
Location
USA
Programming Experience
Beginner
I have tried things like:

VB.NET:
Dim currentProxy As New WebProxy(58.211.113.227, 8080)

objHTTPRequest.Proxy = currentProxy
Nothing seems to work. I would like to learn overall usage of proxies in VB.net

Thank,
Nick
This is setting the proxy correctly, what exactly is not working?
 
Top Bottom