Simulate Incorrect Content-Length Headers for HTTP in C#
- by cfeduke
We are building a comprehensive integration test framework in C# for our application which exists on top of HTTP using IIS7 to host our applications.
As part of our integration tests we want to test incoming requests which will result in EndOfStreamExceptions ("Unable to read beyond end of stream") that occur when a client sends up a HTTP header…