A CGI bash script will throw error as malformed header from script. in the web server error log when the content is not spaced, To eliminate this error give a empty line/newline after content.
the log may look like this,
#!/bin/bash
echo "Content-type: text/html"
echo
[Tue Oct 11 14:09:42 2011] [error] [client 172.16.32.215] malformed header from script. Bad header=TEST: test.html
No comments:
Post a Comment