[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ISAPI Perl w/ PerlIS


I figured it out.  It seems that the ISAPI thing is a bit more complicated.
 You need the following header:

print "HTTP/1.0 200 OK\nContent-type: text/html\r\n" if $ENV{PERLXS} eq
print "Content-type: text/html\n\n";
print "<html>\n";

And so on...
The main difference is the presence of the first line.  Here's another

print "HTTP/1.0 302 Temporary Redirection\r\n" if $ENV{PERLXS} eq "PerlIS";
print "Content-type: text/html\n";
print "Location: $input{'url'}\n\n";

This allows you to redirect things around.  I found this from a script
example at http://www.mercado.de/handbuch/clicker.txt

Wow, it only took a day to get PerlIS working.  Now to actually start
writing the Perl proggies.

Later all.