If you really want taint checking, you have to do it at a higher level, unfortunately. The thing is, in your situation, it would seem that windows is constructing and intializing a perl interpreter _before_ it executes your script. It is at the moment of initialization that the taint flag must be set. You could try the following: Open up your Internet Information Services settings panel, right click on your web server, and select properties. Click on the 'Home Directory' tab, then the 'Configuration' button. You should now see a scrolling listbox with file extension mappings. Scrolling down to .pl you will see something like
.pl C:\Perl\bin\perl.exe "%s" %s


This is where I would try adding the -T switch:

C:\Perl\bin\perl.exe -T "%s" %s

The down side is that you will enforce taint checking on all scripts. You might want to add a new extension .plt, which would use the perl.exe with the taint flag, its up to you how you want to work.

Hope this helps
Peace,
Jamie


Nancy Wickstrom wrote:


Hi,
I'm a Perl and CGI newbie trying to get a successful Perl installation on my IIS so that I can start to learn the stuff! When I try to test the server with a Perl script (see below), I get the following message:
"The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Too late for "-T" option at c:\inetpub\scripts\perltest.pl line 1."
I installed my IIS server and tested it successfully with a simple html file that I stored in C:\Inetpub\wwwroot\. And I successfully tested my perl script's syntax from the command line. I stored my test script in the C:\Inetpub\Scripts\ directory. The script is below. Can anyone tell me what could be happening to cause the CGI error message? Thank you so much!
#!C:\Perl\bin\perl.exe -wT
print "Content-type:text/html\n\n";
print "This is testing a perl script on my server.";
Nancy Wickstrom




_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to