Question

Using HttpWebRequest/Response, and the Trailer headers in the chunked-encoded response are being thrown away (I've actually stepped through the .Net 4.0 reference source to see where it calls RemoveTrailers after the final chunk). Is there any way to retrieve those headers? Also, does anyone know why this behavior is in place to begin with?

In case anyone asks, no, I can't ensure that the trailer headers are moved to the rest of the headers. This is simply the data stream format I have to work with.

Was it helpful?

Solution

I dont think there is any way to do that. As to why it is like this, when this feature was first being implemented, there was no known HTTP server that sent headers in chunked response trailers.

What kind of server is this? Is this a custom server that is doing this?

If you absolutely care about this, you can find a feature request at the MS connect website (http://connect.microsoft.com).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top