[Mono-list] Problem with System.Net.HttpWebRequest.GetRequestStream

NokNok Developer developer at noknok.net
Thu May 12 14:42:35 EDT 2011


I am converting an application over from .NET to MONO

In doing such we have a function which does WEB POSTS.

The problem we are seeing, is after creating the WebRequest, we have to 
get the REQUEST STREAM to write the POST information, when doing that, 
it immediately returns with a TIMEOUT Error:

mystream = wreq.System.Net.HttpWebRequest.GetRequestStream();

Fails immediately:

   at System.Net.HttpWebRequest.GetRequestStream () [0x0004a] in 
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.2\mcs\class\System\System.Net\HttpWebRequest.cs:748 


Why is that? Is their something special one needs to do when wanting to 
get the Stream for the Request so we can POST information?

Shawn



More information about the Mono-list mailing list