Line 1 - Change !# to #!
Line 2 - add \n\n
Move the script to the cgi-bin folder and try curl localhost/cgi-bin/hello#!/usr/bin/perl print "Content type: text/html\n\n"; print "hello world";
In reply to Re: CGI on OpenBSD 5.6 httpd
by poj
in thread CGI on OpenBSD 5.6 httpd
by slamet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |