Microsoft KB Archive/250983

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 13:51, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Article ID: 250983

Article Last Modified on 12/3/2007



APPLIES TO

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



This article was previously published under Q250983

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:

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.


Keywords: kbhowto kbpending KB250983