views:

8

answers:

0

Hi,

I'm writing an application within asp.net MVC 3 Beta. The application will receive an HTTP GET request with various headers. After this request the client sends 8 bytes of data.

The client does NOT set a Content-Length header so as far as I can tell asp.net ignores the data that follows the headers.

I need this data! My Request object states that the InputStream has a length of 0. I've tried several things thus far;

  1. I used reflection in an IHttpModule to add a Content-Length header to the incoming request in the hope that it would then read the inbound data as if it were part of the body. It doesn't.

  2. I've tried replacing the Request.Filter to read the stream, but this isn't working either.

I presume that it's possible to hook into the request processing pipeline at a really low level and force the reading of the stream after the headers so that I can get to those 8 bytes - I just don't know how.

Please help!

Ryan.

related questions