RE: How to get Connection: Keep-Alive from IIS
by Chris O other posts by this author
Oct 27 2006 6:17AM messages near this date
How to get Connection: Keep-Alive from IIS
|
RE: How to get Connection: Keep-Alive from IIS
SERVICES > Does anyone know whether you can get this to work on IIS and if so, what
needs to be done?
> /JW
This was posted a while back. It works on Apache and IIS.
- Chris
#!/usr/bin/perl
$|=1;
use CGI qw(:standard);
$cancel=0;
$SIG{'__DIE__'}=sub {$cancel=1;};
print "Content-type: text/html\n",
"Connection: keep-alive\n\n",
"<html> <body>\n",
"I am doing something on server ";
for(1..3)
{
for(1..5)
{
print '*',' 'x255;
sleep 2;
}
sleep 2;
print "<br> I still work...\n";
print "<br> Stop button pressed<br>\n" if($cancel==1);
}
print "<br> OK - That's all\n",
"</body> </html>\n";
Thread:
jurgen
Chris O
jurgen
|