in reply to My CGI gives "document contained no data"
You show us that you return a valid header, thus no 500 internal server error. This "document contained no data" message appears when the script does not return any information to the browser. Often it happens when the script tries to access a nonexistent file and then return information from that file or the script takes so long to run that the browser times out. Add these lines as shown: <code> $|++; print "Content-type: text/html\n\n" # <- existing line print "
Hello World!\n" <code>
The $|++ forces buffer flushing and then after your header you print a short message :-) If this works but you get nothing else then, ahm, well, the document contained no data - because your script doesn't send any.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|