Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by steveAZ98 (Monk)
on Jul 25, 2000 at 06:01 UTC ( [id://24228]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found