SPUG: NPH in IE

Gary Varnell gary at 2dgs.com
Wed Sep 20 16:12:03 CDT 2000


Does anyone know how to get a multipart NPH script to run properly in
IE?

The below code example works fine in netscape, and according to the
Microsoft knowledge base is correct,
but IE prints the content type and boundary.


$|=1;                                   # don't buffer output
$BOUNDARY="--start-new-page-here--";    # HTML seperator

print "HTTP/1.0 200 OK\n";
print "Pragma: no-cache\n";
print "Content-type: multipart/x-mixed-replace;boundary=$BOUNDARY\n\n";
print "$BOUNDARY\n";                    # tells browser to start a new
page

print "Content-type: text/html\n\n";    # tells it what kind
print "some html here\n";
sleep(3);
        print "$BOUNDARY\n";


print "Content-type: text/html\n\n";    # tells it what kind
print "some more html here\n";
sleep(3);
        print "$BOUNDARY\n";

print "Content-type: text/html\n\n";    # tells it what kind
print "some more html here\n";
sleep(3);
print "</html>";


Thanks in advance,
Gary V.
--
__________________________________________________________
  Digital Graphics Studios   (DGS)
----------------------------------------------------------
  Website: http://www.2dgs.com      Phone:  (360) 491-1149
   E-mail: mailto:Info at 2dgs.com



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list