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
sorry David,
can you post an "hello world" cgi working?
I was using INDIGO PERL on win and that script work on that system.
Francesco
--- David Olbersen <[EMAIL PROTECTED]> wrote:
> Francesco,
>
> That's not a complete CGI script -- it's missing quite a few headers.
>
> I'd suggest reading u
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
Francesco,
That's not a complete CGI script -- it's missing quite a few headers.
I'd suggest reading up on the CGI module. You can get information about it at
http://search.cpan.org. To be fair this has very little to do with apache, and quite a
bit to do with your script.
16 matches
Mail list logo