Microsoft Knowledge Base Email Alertz

KBAlertz.com: (304279) - Data that is returned to a browser can be compressed and decompressed by using XMLHTTP . HTTP compression allows Internet Information Services (IIS) to send compressed content to a client, and URLMON is responsible for the decompression on the client...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 304279 - Last Review: July 1, 2004 - Revision: 2.1

How To Enable Compression and Decompression of Data By Using XMLHTTP Code

This article was previously published under Q304279

SUMMARY

Data that is returned to a browser can be compressed and decompressed by using XMLHTTP. HTTP compression allows Internet Information Services (IIS) to send compressed content to a client, and URLMON is responsible for the decompression on the client side.

MORE INFORMATION

A client computer can use the XMLHTTP object (MSXML2.XMLHTTP) to send an arbitrary HTTP request or data to a Web server and receive a response. More specifically, an XMLHTTP POST uses HTTP to send data and a response request to a Web server's Active Server Pages (ASP) page. An XMLHTTP GET just requests a response. The response is written to the browser's output by setting the ContentType and passing the response to the Response object.

The following article contains sample code in which the client uses the XMLHTTP POST command to send data and request a response from an ASP page:
290591  (http://kbalertz.com/Feedback.aspx?kbNumber=290591/EN-US/ ) How To Submit Form Data by Using XMLHTTP or ServerXMLHTTP Object
Although IIS may store a compressed copy of the file in a temporary folder if static data is being retrieved, the data in the XMLHTTP POST scenario is dynamic and no copy of the file is stored. IIS 5.0 compresses the file as it is generated and sends the compressed file to the browser. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
255801  (http://kbalertz.com/Feedback.aspx?kbNumber=255801/EN-US/ ) How to Determine if HTTP Compression Is in Use
To enable HTTP compression on GET or POST requests, the IIS settings for HTTP compression should be set by using the Service tab of the WWW Service Master Properties. For more information on how to do this, see the IIS documentation. A fix has been developed to enable HTTP compression on POST requests and was first included in Windows 2000 Service Pack 2. This fix should be applied to the server with the receiver ASP. For more information on the fix, see the following Knowledge Base article:
259760  (http://kbalertz.com/Feedback.aspx?kbNumber=259760/EN-US/ ) Compression Is Not Enabled on POST Request
Alternatively, ServerXMLHTTP provides methods and properties for server-safe HTTP access between different Web servers. ServerXMLHTTP relies on WinHTTP. Currently, WinHTTP 4.0 and later does not support decompression; therefore, ServerXMLHTTP code may not be used to engage compression and decompression of files.

REFERENCES

255951  (http://kbalertz.com/Feedback.aspx?kbNumber=255951/EN-US/ ) HTTP Compression Methods and Files Used by IIS 5.0
290761  (http://kbalertz.com/Feedback.aspx?kbNumber=290761/EN-US/ ) Frequently Asked Questions about ServerXMLHTTP

APPLIES TO
  • Microsoft XML Parser 3.0, when used with:
    • Microsoft Windows 2000 Standard Edition
  • Microsoft XML Parser 3.0 Service Pack 1, when used with:
    • Microsoft Windows 2000 Standard Edition
  • Microsoft XML Core Services 4.0, when used with:
    • Microsoft Windows 2000 Standard Edition
Keywords: 
kbhowto KB304279
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please