• Log in or sign up for an account here: https://www.sythe.org/login

[HELP] Proxy with HttpWebRequests?

dgameman1

Active Member

Banned
Joined
May 25, 2006
Sythe Gold
0
Messages
122
So my current code is

Code:
  Try
    Dim WR As Net.HttpWebRequest = Net.HttpWebRequest.Create(TextBox1.Text)
    Dim Response As Net.HttpWebResponse = WR.GetResponse()
    Dim SR As New IO.StreamReader(Response.GetResponseStream)
    Dim PageData As String = SR.ReadToEnd()
    SR.Close()
  Catch ex As Exception
    Dim WR As Net.HttpWebRequest = Net.HttpWebRequest.Create("http://" & TextBox1.Text)
    Dim Response As Net.HttpWebResponse = WR.GetResponse()
    Dim SR As New IO.StreamReader(Response.GetResponseStream)
    Dim PageData As String = SR.ReadToEnd()
    SR.Close()
  End Try

How can I use proxies with a webrequest?

I know how to do it with webpages. I use the RefreshIEsettings, but how do i do it with webrequests?
 
Runescape Gamblingrunescape gambling
Back
Top