Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Answer: How can I find a 'Document contains no data' problem?

by steveAZ98 (Monk)
on Jul 25, 2000 at 06:01 UTC ( #24228=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > How can I find a 'Document contains no data' problem? - Answer contributed by steveAZ98

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.


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 Answer: How can I find a 'Document contains no data' problem?
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-09-25 16:28 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (138 votes). Check out past polls.