Brent, 

Unfortunately, it's not much more informative then I said in my first note. Here's a 
representative error message:


[28/Feb/2002:14:46:37] failure ( 1892): for host 127.0.0.1 trying to GET 
/cgi2/current_time.cgi, cgi-parse-output reports: the CGI program c:\Perl\bin\perl.exe 
did not produce a valid header (program terminated without a valid CGI header (check 
for core dump or other abnormal termination)

Whereas when I run the exact same cgi script from the command line with -wT it appears 
to compile, produces no warnings, and generates valid HTML output. It's odd, but just 
removing the -T (even with the -w left in) from the #! line in the source file is 
enough to make the web server execute it properly. 

--ted

----- Original Message ----- 
From: "Brent Michalski" <[EMAIL PROTECTED]>
To: "Ted Markowitz" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 1:25 PM
Subject: Re: Using -T (taint) in perl scripts on Win32


> 
> What does the web server log file say that the problem is.  The web server
> log should contain something much more useful than a 500 error...
> 
> I am guessing that you are getting an "insecure dependency" or some type of
> error like that when you run it via the web server....
> 
> 
> brent
> 
> 
> 
>                                                                                      
>                              
>                     "Ted                                                             
>                              
>                     Markowitz"           To:     <[EMAIL PROTECTED]>            
>                              
>                     <cognosys@yah        cc:                                         
>                              
>                     oo.com>              Subject:     Using -T (taint) in perl 
>scripts on Win32                    
>                                                                                      
>                              
>                     03/01/02                                                         
>                              
>                     11:11 AM                                                         
>                              
>                     Please                                                           
>                              
>                     respond to                                                       
>                              
>                     "Ted                                                             
>                              
>                     Markowitz"                                                       
>                              
>                                                                                      
>                              
>                                                                                      
>                              
> 
> 
> 
> 
>     I'm having difficulty using the -T switch with perl in the #! line in
>     cgi scripts on my Win2K system using a Netscape 4.1 web server. If I
>     use something like "#!c:/perl/bin/perl.exe -wT" on the 1st line, the
>     server complains with an HTTP 500 error about the script not producing
>     valid headers. However, when I edit the script to remove the -T, it
>     runs fine. Also, when I run it via the command line with "perl -wT
>     foo.cgi", it compiles correctly and produces valid HTML with no errors.
> 
>     I've tried this both with and without setting the Windows file
>     association for .CGI to be "perl -wT %1 %*", which works again from the
>     command-line just fine. Any ideas or pointers?
> 
>     Thanks.
> 
>     --ted
>     +===================================================
>     | T e d   M a r k o w i t z
>     | Chief Architect, Cognosys LLC
>     | 10 Hamilton Lane, Darien, CT 06820-2809
>     |
>     | 203.984.6565 (phone)    | 203.655.7746 (fax)
>     | mailto:[EMAIL PROTECTED] | http://www.cognosys.net
>     | TJMarkowitz (AIM)
>     +===================================================
> 
> 
>      --
>     To unsubscribe, e-mail: [EMAIL PROTECTED]
>     For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to