Hi.

I have asked this once before, and I did get some replies, but unfortunatly none that worked.

How to use webproxy and webrequest?
I just get a timeout exception.
I have also tried to set the proxy manual. Then I don't get the timeout, but "an unexpected error occured during recive".

I found this sample on MSDN
VB Code:
  1. Dim sURL As String
  2.         sURL = "http://www.microsoft.com"
  3.  
  4.         Dim wrGETURL As WebRequest
  5.         wrGETURL = WebRequest.Create(sURL)
  6.  
  7.         wrGETURL.Proxy = WebProxy.GetDefaultProxy()
  8.  
  9.         Dim objStream As Stream
  10.         objStream = wrGETURL.GetResponse.GetResponseStream()
  11.  
  12.         Dim objReader As New StreamReader(objStream)
  13.         Dim sLine As String = ""
  14.         Dim i As Integer = 0
  15.  
  16.         Do While Not sLine Is Nothing
  17.             i += 1
  18.             sLine = objReader.ReadLine
  19.             If Not sLine Is Nothing Then
  20.                 Console.WriteLine("{0}:{1}", i, sLine)
  21.             End If
  22.         Loop
  23.  
  24.         Console.ReadLine()

I figured, "hey, ms made it, so it must work...". Well, it didn't. At least not for me.

Here's some screenshots of my proxy settings in IE.



Can anyone help me with this?