Please use a descriptive subject line. The whole point of this list is
to help people with errors, so "error" doesn't really stand out! :-)
On Wed, 27 Apr 2005, Octavian Rasnita wrote:
> I have found the following errors in the Apache's error log file. Does
> anyone know what they represent?
>
Pete Emerson wrote:
> The CGI module is fantastic for doing things like printing headers,
> parsing forms, etc. I don't think I've written a CGI script without it.
> Your missing the header. See 'perldoc CGI'.
>
> #!/usr/bin/perl -w
>
> use strict; # Highly recommended!
> use CGI qw(:standard);
-Original Message-
From: "R. Joseph Newton" <[EMAIL PROTECTED]>
To: Francesco del Vecchio <[EMAIL PROTECTED]>
Date: Fri, 14 Mar 2003 13:45:08 -0800
Subject: Re: apache error
Francesco del Vecchio wrote:
> I'm new to apache and linux.
>
> I'm
Francesco del Vecchio wrote:
> I'm new to apache and linux.
>
> I'm trying to run the "Hello World" cgi that works perfectly from terminal but via
> WebServer I
> obtain this error:
>
> [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1] Premature end of script
> headers: hello.pl
>
> Do you h
Bob Showalter wrote:
> R. Joseph Newton wrote:
> > What system needs those "\r"s? I have yet to run across a
> > web browser thaqt did not respond properly with simple newlines: "\n".
>
> They are required per RFC2616, and they are output by CGI.pm. But the RFC
> encourages clients to be forgivi
Be sure you are using the correct path to PERL on your system.
#!/usr/bin/perl
or
#!/usr/local/bin/perl
-rm-
- Original Message -
From: Francesco del Vecchio <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:58 AM
Subject: RE: apache error
Francesco del Vecchio wrote:
> Sorry for boring you, but even copying and pasting the source
> you gave me I obtain the same error
> :-((
>
> Any help?
Sorry, dunno. I just cut and pasted all three examples back onto my system
and all work correctly.
Look in the error log below the "Premature en
R. Joseph Newton wrote:
> Bob Showalter wrote:
>
> > A CGI script needs to output a MIME header. At a bare minimum, you
> > need to add the following:
> >
> >print "Content-Type: text/plain\r\n\r\n",
> >"ciao\n";
>
> Hi Bob,
Hi R. Joseph,
>
> What system needs those "\r"s? I hav
Francesco del Vecchio wrote:
> Sorry for boring you, but even copying and pasting the source you gave me I obtain
> the same error
> :-((
>
> Any help?
>
> Francesco
Get rid of the "\r"s. Dont try to do too many things at once.
Just print the header fist, on one line. That is one job.
Then be
Bob Showalter wrote:
> A CGI script needs to output a MIME header. At a bare minimum, you need to
> add the following:
>
>print "Content-Type: text/plain\r\n\r\n",
>"ciao\n";
Hi Bob,
What system needs those "\r"s? I have yet to run across a web browser thaqt did not
respond properl
Sorry for boring you, but even copying and pasting the source you gave me I obtain the
same error
:-((
Any help?
Francesco
--- Bob Showalter <[EMAIL PROTECTED]> wrote:
> Francesco del Vecchio wrote:
> > I'm new to apache and linux.
> >
> > I'm trying to run the "Hello World" cgi that works perf
Message -
From: Francesco del Vecchio <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:28 AM
Subject: RE: apache error
> sorry David,
>
> can you post an "hello world" cgi working?
>
> I was using INDIGO PERL on win and that scrip
Francesco del Vecchio wrote:
> I'm new to apache and linux.
>
> I'm trying to run the "Hello World" cgi that works perfectly
> from terminal but via WebServer I
> obtain this error:
>
> [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1]
> Premature end of script headers: hello.pl
>
> Do you h
Tnx for the example!
now I undersand! ^_^
Tnx to David too!!!
Francesco
--- Pete Emerson <[EMAIL PROTECTED]> wrote:
> The CGI module is fantastic for doing things like printing headers,
> parsing forms, etc. I don't think I've written a CGI script without it.
> Your missing the header. See 'pe
iGuard Engineer
> 11415 West Bernardo Court
> San Diego, CA 92127
> 1-858-676-2277 x2152
>
>
> > -Original Message-
> > From: Francesco del Vecchio [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 14, 2003 8:16 AM
> > To: [EMAIL PROTECTED]
> &
The CGI module is fantastic for doing things like printing headers,
parsing forms, etc. I don't think I've written a CGI script without it.
Your missing the header. See 'perldoc CGI'.
#!/usr/bin/perl -w
use strict; # Highly recommended!
use CGI qw(:standard);
print header;
print start_html;
pr
ith your script.
--
David Olbersen
iGuard Engineer
11415 West Bernardo Court
San Diego, CA 92127
1-858-676-2277 x2152
> -Original Message-
> From: Francesco del Vecchio [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 14, 2003 8:16 AM
> To: [EMAIL PROTECTED]
> Subject
I'm new to apache and linux.
I'm trying to run the "Hello World" cgi that works perfectly from terminal but via
WebServer I
obtain this error:
[Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1] Premature end of script headers:
hello.pl
Do you have any idea about it?
the source is the follo
18 matches
Mail list logo