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

Re: ISAPI Perl w/ PerlIS



Ang-Chih Kao schrieb:
> 
> Hola,
> 
> 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
> "PerlIS";
> 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
> example:
> 
> 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.
^^
Hi Ang-Chih,

I started to write a mail with contents "Try NPH" (None parsed headers).
Now I see you've found it too.

Bye Holger