On 9/2/13, obsd, cgi <obsd...@postafiok.hu> wrote:
> http://unix.stackexchange.com/questions/88062/how-to-enable-cgi-in-openbsd
>
> How could someone use a CGI (with a shell script) on OpenBSD? What could
> the problem be?
>
> The CGI is this:
>
> # cat /var/www/htdocs/cgi-bin/SEARCH.cgi
> printf "Content-type: text/html\n\n";

tried with printf "Content-type:text/html\r\n\r\n"?


> printf hi
>
> but it keeps saying:
>
>
> # cat /var/www/logs/error_log
> [Mon Aug 26 10:09:13 2013] [error] [client 10.0.2.2] Premature end of
> script headers: /htdocs/cgi-bin/SEARCH.cgi
> #
>
>
> yes, I tried many things..(permissions looks good, printf binary copied to
> chroot, httpd.conf looks ok..) several hours of pain.. can someone post a
> howto/URL?
>
> Thanks, have a better day :)

Reply via email to