Using Netscape Server Push Technology with ASP

This article was previously published under Q250983
This article has been archived. It is offered "as is" and will no longer be updated.
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:For more information about IIS 7.0, visit the following Microsoft Web site:
SUMMARY
The Netscape Web browser implements a proprietary technology known as Server Push to send a type of dynamic page updates to a client. This technology is not supported by Microsoft Internet Explorer. However, you can use Server Push with Microsoft Active Server Pages (ASP), or you can Client Pull as an optional method of displaying dynamic page updates in Internet Explorer.
MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Server Push Using ASP

To implement Server Push using ASP, do the following:
  1. Save the following code as Push.asp in a folder with at least Script access defined:
    <% @Language="VBScript" %><%  Option Explicit  Dim strBoundary  ' change the following string to whatever boundary you wish to use  strBoundary = "MSBOB"  ' turn off buffering  Response.Buffer = False  ' set the content type as a multipart document  Response.ContentType = "multipart/x-mixed-replace;boundary=" & strBoundary  ' create a function to output the boundary  Sub WriteBoundary()    Response.Write "--" & strBoundary & vbCrLf    Response.Write "Content-Type: text/html" & vbCrLf & vbCrLf  End Sub  ' this is a very unelegant sleep function just to create a short delay  Sub Sleep(tmpSeconds)    Dim dtmOne,dtmTwo    dtmOne = Now()    While DateDiff("s",dtmOne,dtmTwo) < tmpSeconds      dtmTwo = Now()    Wend  End Sub%><% WriteBoundary %><html><body><p>First Page</p></body></html><%  Sleep 10  WriteBoundary%><html><body><p>Second Page</p></body></html><%  Sleep 10  WriteBoundary%><html><body><p>Third Page</p></body></html>						
  2. Browse to the page using the Netscape Web browser. The following behavior should occur:

    • The first page displays for 10 seconds, and the browser indicates that it is still loading a document.

    • The second page displays for 10 seconds, and the browser continues to indicate that it is still loading a document.

    • The third page displays, and the browser indicates that the document loading has completed.
For more information on Server Push, Client Pull, and Microsoft's Internet products, please see the following articles:
159650 - Server Push Animation Not Supported in Internet Explorer
194083 - FP98: How to Use Client Pull in FrontPage Web Documents
196471 - FP2000: How to Use Client Pull in FrontPage Web Documents
240774 - How to Enable Client Pull for Web Servers, Sites, and Folders
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Properties

Article ID: 250983 - Last Review: 02/28/2014 00:30:27 - Revision: 8.1

Microsoft Internet Information Services 6.0, Microsoft Internet Information Services 5.0, Microsoft Internet Explorer 5.0, Microsoft Internet Information Server 4.0

  • kbnosurvey kbarchive kbhowto kbpending KB250983
Feedback