Accessing the buffered request body in HttpWebRequest?

Posted by Greg Beech on Stack Overflow See other posts from Stack Overflow or by Greg Beech
Published on 2010-04-08T13:41:06Z Indexed on 2010/04/08 13:43 UTC
Read the original article Hit count: 307

Filed under:
|

By default HttpWebRequest has AllowWriteStreamBuffering set to true, which means that all data written to the request stream is buffered inside the object.

I'd like to access this buffer of data after it has been written, but can't seem to find any way to do so. I'm happy for it to fail if AllowWriteStreamBuffering is false.

Is there any way to do this, or is it not exposed anywhere?

© Stack Overflow or respective owner

Related posts about httpwebrequest

Related posts about webrequest