Allegakoen, Justin Devanandan <> wrote: > ------8<--------- > I have a perl script and I would like to run it on IIS6 under win2003 > server standard edition, I got this error message, "The specified CGI > application misbehaved by not returning a complete set of HTTP > headers". > > I ran this script on IIS5.1 under windows XP, the script runs file. > > I already add the script with "print "Content-Type: > text/html\n\n\n";", but I still got the same error message on IIS6. > > Is there anyone in the list ever face this kind of problem and how to > solve it? > Please help me. > > I am looking forward to a favorable reply from you. Thank you. > ------8<--------- > > It's preferrable to use the module CGI rather than printing out the > content type. Usage of Carp in particular will tell you where your > script is going wrong by putting fatals to your browser:- > > use CGI qw(:standard :cgi-lib);
A bit of a not-pick perhaps, but I would advise against ':cgi-lib' unless it is really needed, which it shouldn't be unless your script is really, really old, and you can't justify updating it. > use CGI::Carp qw(fatalsToBrowser); > > Hopefully you've executed your script from the command line to see if > there are any errors. > > I'm of the impression that your problem is security settings or > permissions since youve migrated to IIS6. If permissions are a > problem then you will need to change IIS6 so that the script runs > under an account that can execute perl. Could be. Could also be just a web server config thing. Or just using CGI and 'print header;' could do the trick as CGI claims to be able to spot MS IIS and do the right thing (See 'perldoc CGI', search for 'using nph scripts'). > Recommend you do some > googling . . . Sound advice for many problems. HTH _________________________________________ The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. _________________________________________ ================================= Atos Euronext Market Solutions Disclaimer ================================= The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions. L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
