Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

IIS Compression Enabled, but Response.ContentEncoding is always UTF8Encoded

6 views
Skip to first unread message

jre...@gmail.com

unread,
Apr 3, 2007, 1:12:04 PM4/3/07
to
I have configured IIS 6.0 Compression on a windows 2003 server. I am
using an about page in my application to display information if the
page was compressed or not. To test compression I used wfetch on the
about page and added the custom header: Accept-Encoding: gzip,deflate\r
\n and it returns gzip so up to this point everything is fine, but
when I use my browser (ie6) to run the about.aspx page the
response.contentencoding property is always UTF8Encoding although the
request header contains accept-encoding: gzip, deflate. Any ideas
what I am doing wrong so ContentEncoding will return gzip? Here is a
snippet of code that I am using to show the properties:

lblIISCompression.Text = Response.ContentEncoding.ToString

Dim count As Integer
For count = 0 To Request.ServerVariables.Count - 1
lblServerVariables.Text &=
Request.ServerVariables.Keys.Item(count) & " - " &
Request.ServerVariables.Item(count).ToString & "<br>"
Next

Thanks for your help.

-- Jim

0 new messages