student101
Member
- Joined
- Dec 22, 2007
- Messages
- 10
- Programming Experience
- 3-5
i have this code :
can someone tell me , is that right code for implementing surfing with proxy ?
how can i set Socks 5 or 4 proxy in my app ?
VB.NET:
Dim makereq As System.Net.WebRequest = System.Net.WebRequest.Create("http://www.google.com")
makereq.Proxy = New System.Net.WebProxy("ip", port)
Dim myResponse As System.Net.WebResponse = makereq.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(myResponse.GetResponseStream)
Dim response As String = sr.ReadToEnd.Trim()
textbox.text = response
how can i set Socks 5 or 4 proxy in my app ?