"Invalid method in request" errors in Apache error log, was Re: error

2005-04-27 Thread Chris Devers
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? >

Re: apache error

2003-03-15 Thread Scott R. Godin
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);

Re: Re: apache error

2003-03-14 Thread Etienne Rivard
-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

Re: apache error

2003-03-14 Thread R. Joseph Newton
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

Re: apache error

2003-03-14 Thread R. Joseph Newton
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

RE: apache error

2003-03-14 Thread Ramón Chávez
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

RE: apache error

2003-03-14 Thread Bob Showalter
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

RE: apache error

2003-03-14 Thread Bob Showalter
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

Re: apache error

2003-03-14 Thread R. Joseph Newton
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

Re: apache error

2003-03-14 Thread R. Joseph Newton
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

RE: apache error

2003-03-14 Thread Francesco del Vecchio
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

RE: apache error

2003-03-14 Thread Ramón Chávez
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

RE: apache error

2003-03-14 Thread Bob Showalter
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

Re: apache error

2003-03-14 Thread Francesco del Vecchio
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

RE: apache error

2003-03-14 Thread Francesco del Vecchio
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] > &

Re: apache error

2003-03-14 Thread Pete Emerson
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

RE: apache error

2003-03-14 Thread David Olbersen
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

apache error

2003-03-14 Thread Francesco del Vecchio
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