Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS 6 not printing perl errors to browser 1

Status
Not open for further replies.

skosterow

Technical User
Feb 23, 2002
135
US
HELP!

IIS 6 on windows 2003 is NOT printing errors to the browser....

Anyone else have this problem?

- Scott

Wise men ask questions, only fools keep quite.
 
Are you iuncluding this line at the top of your script
Code:
use CGI::Carp /fatalsToBrowser/;

??Paul


Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
Paul,

No - however when i do - and use strict; i get errors that you cant use strict with fatalsto browser : also when i deved the site im working on on a win 2k box using IIS 5 - i got the errors without the pice of CGI code. :)

Wise men ask questions, only fools keep quite.
 
Note the capitalisation fatalsToBrowser

--Paul

Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
Paul -

Here is the ONLY return i get:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

hehehe not very descriptive - i have tried this with the - as well!

Wise men ask questions, only fools keep quite.
 
Waiterm;

that worked bud - do you know why its different from win2k and win23k? or iis 5 and iis 6??

Man i have been searching for an answer for the last 3 days on the net - no go but that worked

cheers!

- Scott

Wise men ask questions, only fools keep quite.
 
Waiterm;

that worked bud - do you know why its different from win2k and win23k? or iis 5 and iis 6??

Man i have been searching for an answer for the last 3 days on the net - no go but that worked

cheers!

- Scott

Wise men ask questions, only fools keep quite.
 
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

The headers you were printing are quite likely inaccurate, hence the error. IIS is fairly forgiving for "interpreting" improper headers, you'd be better off finding the problem with your headers and resolving that.

CGI::Carp, I'm not sure but it could generate it's own headers

HTH
--Paul


Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
PaulTEG,

no i think your missunderstanding - when i had IIS 5 it would print the fatals t the browser with out a problem - however, i converted to IIS 6 - and thats when it stoped printing the fatals to the browser - im thinking its a setting in IIS 6 - I know that Microsoft has made 6 "more secure" but seems like they maker it secure to the huy thats gotta work on it NOT the hacker! but what do i know im just another scriptie!

;-)

Wise men ask questions, only fools keep quite.
 
As far as I'm aware CGI::Carp generates its own sets of headers/errors as it's part of the CGI group of modules. I think the reason why my piece of code worked as opposed to the other is simply a syntaxical issue, although it will be different between different versions of IIS/Windows because although it generates custom errors they are generally based on those produced by IIS. qw(fatalsToBrowser); is a catch all so should work on most web servers accurately.

Rob Waite
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top