Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 1998 11:41:11 -0500 (EST)
From:      "Joe \"Marcus\" Clarke" <marcus@miami.edu>
To:        Ken Blundell <ken@osicom.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: CGI Error
Message-ID:  <Pine.OSF.3.96.980216113856.21085A-100000@jaguar.ir.miami.edu>
In-Reply-To: <01bd3af8$1cb709e0$0667eccf@webcity.osicom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, the second error is obvious, your CGI header must be in the
format:

Content-type: <mime type>\n\n

AS for the first, I thought the syntax to load a perl lib was 

require lib_name

Joe Clarke

On Mon, 16 Feb 1998, Ken Blundell wrote:

> Hello again!
> I have a strange error ;-)
> Running FreeBSD 2.2.2
> Perl 4.0
> In my CGI scripts I need to call &ReadParse from cgi-lib.pl
> but when I call &ReadParse or cgi-lib.pl I get an error
> This is how I call the cgi-lib.pl:
> 
> do "cgi-lib.pl" || die "Fatal Error: Can't load CGI Library";
> 
> If I look in httpd-error.log I find this:
> 
> Fatal Error: Can't load CGI Library at /usr/local/www/cgi-bin/formproc.pl
> line 2.
> [Mon Feb 16 11:29:07 1998] access to /usr/local/www/cgi-bin/formproc.pl
> failed for webcity.osicom.net, reason: Premature end of script headers
> 
> Any ideas anybody??
> Thanks in advance............
> Cheers,
>     Ken
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.96.980216113856.21085A-100000>