how to read httpWebRequest's request stream in c#, i got error" the stream is not readable" ?
Posted
by sam
on Stack Overflow
See other posts from Stack Overflow
or by sam
Published on 2010-02-15T03:41:14Z
Indexed on
2010/05/22
8:30 UTC
Read the original article
Hit count: 239
.NET
|httpwebrequest
hi i want to read request stream from a custom httpWebRequest class that inherits from httpWebRequest and i have tried to read the request stream in different stages but sitll not sure how to archieve that in the class,thanks very much for any help.
This custom httpWebRequest is used to serilize soap message and i want to know what request has been sent in string format. I also implemented custom HttpRequestCreator,HttpWebResponse but till cant find a place/stage i can read the request stream. If i output everything in a memory stream then copy the content to request stream, anyone knows which stage i can do it in the constructor, BeginGetRequestStream,EndGetRequestStream or GetRequestStream?
© Stack Overflow or respective owner