Asp.NET 1.1 HttpResponse headers

Posted by Yeti on Stack Overflow See other posts from Stack Overflow or by Yeti
Published on 2010-04-12T20:22:12Z Indexed on 2010/04/12 20:22 UTC
Read the original article Hit count: 472

Hi, i have part of Asp.NET 1.1 project.

I work with remote site, which works incorrect in some cases - sometimes it write incorrect Content-Encoding header.

In my code i get HttpResponse from this remote site. And if Content-Encoding header is equals, for example, "gzip", i need to set Content-Encoding header to "deflate".

But there is no properties or methods in HttpResponse class to get Content-Encoding header.

Content-Encoding property returns, in my case, "UTF-8". In Watch window i see _customProperties field, which contain wrong string value. How can i change header value with Asp.NET 1.1?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about httpresponse