http://qs321.pair.com?node_id=24228


in reply to How can I find a 'Document contains no data' problem?

First check your permissions for the script, make sure it's executable. ie chmod 755 scriptname in the unix world.

Then check that your script is sending back the content type ie. Content-type: text/html\n\n

Then check that your webserver is configured for the directory of where your script lives. ie. if your webserver is configured for cgi scripts in /cgi-bin and your calling /bin/script

If all those are correct, check the error logs of that website. Any errors in opening files, file permissions etc. should be there. Maybe you want to check this first as it will give you a better idea of where to start.

HTH

Also, try using use CGI::Carp qw/fatalstoBrowser/ to get any error messages to appear in the browser window.
Contributed by davorg -- Q&AEditors

  • Comment on Re: How can I find a 'Document contains no data' problem?