RE: Configure compression in .NET 2.0 WebBrowser request headers
- From: jetan@xxxxxxxxxxxxxxxxxxxx ("Jeffrey Tan[MSFT]")
- Date: Tue, 28 Mar 2006 02:37:36 GMT
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.
.
- Prev by Date: Display Control in Internet Explorer
- Next by Date: RE: ColumnHeadersDefaultCellStyle not working
- Previous by thread: Display Control in Internet Explorer
- Next by thread: RE: ColumnHeadersDefaultCellStyle not working
- Index(es):
Relevant Pages
|