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