proxy setting

student101

Member
Joined
Dec 22, 2007
Messages
10
Programming Experience
3-5
i have this code :
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
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 ?
 
i searched alot but i couldn't find any script for connecting via socks to a web page !! i found just one for SMTP .. that was useless !
also i don't know & can't find out whats HTTP proxy ?
how can i setup HTTP proxy on my web site ? it requires port 80 on browsers ?
i know some web proxy , but it seems HTTP proxy is different thing from web proxy !!
pls help me
 
Back
Top