No es posible conectar con el servidor remoto

  • Thread starter Thread starter davidd88
  • Start date Start date
D

davidd88

Guest
Recibo este error: No es posible conectar con el servidor remoto

Linea del error: Dim postreqstream As Stream = postreq.GetRequestStream



Dim proxyObject As New WebProxy(ListBox3.Text, True)
Dim postdata As String = TextBox3.Text & ListBox1.Text & TextBox4.Text & ListBox2.Text & TextBox15.Text
Dim tempcookies As New CookieContainer
Dim encoding As New UTF8Encoding
Dim bytedata As Byte() = encoding.GetBytes(postdata)
Dim postreq As HttpWebRequest = DirectCast(WebRequest.Create(TextBox19.Text), HttpWebRequest)
postreq.Proxy = proxyObject
postreq.Method = "POST"
postreq.KeepAlive = True
postreq.CookieContainer = tempcookies
postreq.ContentType = TextBox17.Text
postreq.Referer = TextBox2.Text
postreq.UserAgent = TextBox18.Text
postreq.ContentLength = bytedata.Length
Dim postreqstream As Stream = postreq.GetRequestStream
postreqstream.Write(bytedata, 0, bytedata.Length)
postreqstream.Close()
Dim postresponse As HttpWebResponse
postresponse = DirectCast(postreq.GetResponse(), HttpWebResponse)
tempcookies.Add(postresponse.Cookies)
logincookie = tempcookies
Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
Dim thepage As String = postreqreader.ReadToEnd
RichTextBox1.Text = thepage



Donde listbox3 es una lista de proxys.


davidd88

Continue reading...
 
Back
Top