CGI Internal Server error
I have small CGI-perl script written in my centos
#!/usr/bin/perl print "Content-type:text/html \n"; print "The animal is \n"; print "The square of \n"; when i run from the browser it says following error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. The error log says malformed header from script. Bad header=The animal is : test4.cgi What could be issue? |
Hi,
You need 2 new lines after "Content-type": Code:
print "Content-type:text/html \n\n"; |
Thank you very much !it works now
|
All times are GMT -5. The time now is 02:53 PM. |