Microsoft KB Archive/240774

= HOW TO: Enable Client Pull for Web Servers, Sites, and Folders =

Article ID: 240774

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Services 5.1

-



This article was previously published under Q240774



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



IN THIS TASK
SUMMARY Uses for Client Pull Use HTML Code to Enable Client Pull Use the IIS Configuration to Enable Client Pull
 * Open the ISM
 * Enable Client Pull for a Whole Web Server
 * Enable Client Pull for a Specific Web Site
 * Enable Client Pull for a Single Folder

REFERENCES



SUMMARY
This step-by-step article describes how to enable default client pull settings through the IIS user interface for a whole Web site, for a specific Web server, or for a Web folder. You can set client pull settings for a specific page by using HTML code, or you can enable client pull by using the IIS configuration settings. This article includes steps for Microsoft Windows NT 4.0, Microsoft Windows 2000, and Microsoft Windows XP.

back to the top

Uses for Client Pull
You can use client pull to do the following:
 * Enable a page for a Web site that a browser redirects to when an Active Server Pages (ASP) session has expired.
 * Force a browser to redirect to the default Web page in a folder after a few minutes.
 * Periodically force an Internet browser to reload a page automatically. Typically, this occurs on a page-by-page basis for a Web site using HTML.
 * Prevent browsers from viewing data that may be out of date, especially on sites where information is updated frequently. Client pull is implemented through the HTTP header REFRESH and can be used to redirect to another page.

back to the top

Use HTML Code to Enable Client Pull
To use HTML to enable client pull for a specific page, add a line similar to the following in the HEAD section (where CONTENT is the number of seconds before the page will auto-refresh):   To auto-load the same page:    To auto-load a different page, add a line similar to the following in the HEAD section (where CONTENT is the number of seconds before the page will auto-refresh and URL specifies the page that will be loaded when the refresh interval has been reached):  

back to the top

Use the IIS Configuration to Enable Client Pull
Because the client pull functionality can be enabled through the IIS configuration, you can implement client pull without adding HTML code. When you enable client pull through the IIS configuration, the client pull values are returned as part of the HTTP headers, as in the following example: HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 30 Aug 1999 21:00:00 GMT REFRESH: 5 Connection: Keep-Alive Content-Length: 1270 Content-Type: text/html Cache-control: private

...... Use the following examples to enable the default client pull settings in the Internet Service Manager (ISM) snap-in for the Microsoft Management Console (MMC).

back to the top

Open the ISM
On Windows NT 4.0:
 * 1) Click Start, point to Programs, point to Windows NT 4.0 Option Pack, and then click Microsoft Internet Information Server.
 * 2) Click Internet Service Manager to open the ISM console on your Web server.

On Windows 2000 or Windows XP:
 * 1) Click Start, point to Programs, and then point to Administrative Tools.
 * 2) Click Internet Services Manager to open the ISM console on your Web server.

back to the top

Enable Client Pull for a Whole Web Server
On NT 4.0 or Windows 2000:
 * 1) In the ISM, right-click the appropriate computer name, and then click Properties.
 * 2) Click Edit to edit the master WWW properties.
 * 3) Click the HTTP Headers tab.
 * 4) Click Add in the Custom HTTP Headers section.
 * 5) Type REFRESH in the Custom Header Name section.
 * 6) Type the number of seconds in the Custom Header Value section.
 * 7) Click OK until you return to the MMC.

On Windows XP:
 * 1) In the ISM, right-click the Web Sites folder, and then click Properties.
 * 2) Click the HTTP Headers tab.
 * 3) Click Add in the Custom HTTP Headers section.
 * 4) Type REFRESH in the Custom Header Name section.
 * 5) Type the number of seconds in the Custom Header Value section.
 * 6) Click OK until you return to the MMC.

back to the top

Enable Client Pull for a Specific Web Site

 * 1) In the ISM, expand the tree to view all Web sites.
 * 2) Right-click the Web site that you want, and then click Properties.
 * 3) Click the HTTP Headers tab.
 * 4) Click Add in the Custom HTTP Headers section.
 * 5) Type REFRESH in the Custom Header Name section.
 * 6) Type the number of seconds in the Custom Header Value section.
 * 7) Click OK until you return to the MMC.

back to the top

Enable Client Pull for a Single Folder

 * 1) In the ISM, expand the tree to view all Web sites.
 * 2) Select the Web site that you want, and then locate the folder that you want to change.
 * 3) Right-click the folder and select Properties.
 * 4) Click the HTTP Headers tab.
 * 5) Click Add in the Custom HTTP Headers section.
 * 6) Type REFRESH in the Custom Header Name section.
 * 7) Type the number of seconds in the Custom Header Value section.
 * 8) Click OK until you return to the MMC.

In each of these examples, you can use the syntax for the Custom Header Value section of " ;URL= " to specify a different page to redirect to.

back to the top

