[Mono-devel-list] HttpWebRequest problem
ndhameja at panaceasoftware.com
Tue Feb 17 22:24:45 EST 2004
I am having a problem while sending out "HttpWebRequest". The problem is unless you close the output stream the message is not getting sent, so the response stream basically times out. Flushing the stream also does not send the message. Sample code
/// Serialize SOAP data.
/// Set the content length of the string being posted.
protected Stream stmRequest;
public void sendHttpData()
stmRequest = req.GetRequestStream();
byte b = ASCIIEncoding.Default.GetBytes(messageToSend);
stmRequest.Close (); // -------------Had to be added <WORKAROUND>
Could someone suggest me any other way, is this a well know problem?.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list