[Mono-list] support for HttpWebResponse

Ishpal Singh ishpal.singh@aeye.biz
Wed, 23 Jul 2003 17:47:04 +0100


I am trying to access another url using the HttpRequest object and try
to read from the stream.
When running on windows and same machine, the  Following script executes
fine. But when I try to access my machine from an external server, it
hangs at 
"HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();"

And I get the following timout message:

Unhandled Exception: System.Net.WebException: The request timed out
in <0x001b6> 00 System.Net.HttpWebRequest:EndGetResponse
in <0x00096> 00 System.Net.HttpWebRequest:GetResponse ()
in <0x00242> 00 HttpRequest.Class1:Main (string[])

---------Code Snippet---------
          Uri uri = new Uri("http://www.somedomain.com");
          HttpWebRequest httpReq =
          httpReq.Method = "POST";
          httpReq.ContentLength = b.Length;

          Stream reqStrm = httpReq.GetRequestStream();
          reqStrm.Write(b, 0, b.Length);

          HttpWebResponse httpRes =
          b = new byte[1000000];
	    while( (i = bfStrm.ReadByte()) != -1 )  b[count++] = (byte)
---------/ Code Snippet--------------

Is there support for the above mentioned methods ??
If yes, can someone please point out what am I doing wrong ....

Don't understand what am I doing wrong, and it is getting very

Thanks in advance

Ishpal Singh.

System Analyst
Aeye Ltd, Aeye.net
R&D: www.aeye.net
Commercial: www.aeye.biz
Tel: +44 (0) 20 8879 9832
Mobile: +44 (0) 7905 235 844
Fax: +44 (0) 7092 129079

Information contained in this email is confidential and is intended only
for the recipient. (c) Aeye Ltd, Aeye.biz, 2003.