RE: Configure compression in .NET 2.0 WebBrowser request headers

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Davidp,

Thanks for your post!

First, can you show me if your IE browser enables http1.1? This option can
be found in "Advanced" tabpage in "Internet Option" dialog.

By default, if http1.1 is enabled in IE browser, it will send
Accept-Encoding: gzip, deflate to the IIS. Or, it will not send
Accept-Encoding: gzip, deflate.

WebBrowser control is the core component of IE, so they have the similar
behavior.

I have done some test regarding your issue:
1. Create an Asp.net project, which dump out the Http headers of the
request.
2. Create a Winform application, which uses your code snippet to set the
http header.

If http1.1 is enabled, regardless of the client code snippet, the Asp.net
page will always get Accept-Encoding: gzip, deflate.

If http1.1 is turned off, your http header adding code will send
Accept-Encoding: gzip, deflate, to our Asp.net page without any problem.

It seems that I can not reproduce out your problem.

Additionally, I suggest you try a local Web site first, such as creating a
sample Asp.net project. Does this problem still exist? This will help to
isolate the proxy issue.

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Accept Encoding
    ... through proxy connections" the accept-encoding is set accordingly ... (accept-encoding is set to "gzip, deflate"). ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: how do I send a post string
    ... Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: apache patch time
    ... Host: ?:80 ... Accept-Encoding: gzip, compress ... server reached MaxClients setting, consider raising ...
    (comp.os.linux.security)
  • [Full-Disclosure] this is fun?
    ... Accept-Encoding: gzip, compress ... Cache-Control: no-cache ...
    (Full-Disclosure)
  • blocking gzip encoded files
    ... HTML data received with Content-encoding: gzip ...
    (Bugtraq)