Re: Internal Server Error and malformed header from script

2009-04-27 Thread André Warnier
Jeff Zhuk wrote: ... Jeff, whenever you send a message to the mod_perl list, I get a copy, because I am subscribed to the list. Then I get another copy, because you also send a copy to me directly. So I get each message twice. I guess it's the same for Randy. It is not a real problem, but it is

Internal Server Error and malformed header from script

2009-04-27 Thread Jeff Zhuk
After moving to mod_perl with Apache 2.2 I had this problem while running a simple test.pl   The browser displayed: "HTTP 500 - Internal Server Error" and in the error.log I could see "malformed header from script" and "did not send an HTTP header"   Several peo

RE: Malformed header from script

2007-04-19 Thread michael watson \(IAH-C\)
it is compatible with mod_perl2" Mick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: 19 April 2007 13:23 To: michael watson (IAH-C) Cc: modperl@perl.apache.org Subject: Re: Malformed header from script One other idea: try updating

Re: Malformed header from script

2007-04-19 Thread Perrin Harkins
One other idea: try updating the CGI.pm module on that server to the latest version. - Perrin

Re: Malformed header from script

2007-04-19 Thread Perrin Harkins
On 4/19/07, michael watson (IAH-C) <[EMAIL PROTECTED]> wrote: You said that "It should be examining the output of contigview and mapview to determine if there's a content type header, and if not, it will send text/html." Actually, I believe you always have to send the Content-type header from y

RE: Malformed header from script

2007-04-19 Thread michael watson \(IAH-C\)
ny known bugs that could possibly be causing this behaviour? Many thanks Mick -Original Message- From: Robert Landrum [mailto:[EMAIL PROTECTED] Sent: 18 April 2007 17:11 To: michael watson (IAH-C) Cc: modperl@perl.apache.org Subject: Re: Malformed header from script michael watson (IAH-C)

Re: Malformed header from script

2007-04-18 Thread Robert Landrum
michael watson (IAH-C) wrote: [Wed Apr 18 09:56:55 2007] [notice] Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.0 configured -- resuming normal operations [Wed Apr 18 09:56:57 2007] [error] [client 149.155.40.20] malformed header from script. Bad header=: mapview [Wed Apr 18 09:56:57 2007] [warn

RE: Malformed header from script

2007-04-18 Thread michael watson \(IAH-C\)
red -- resuming normal operations [Wed Apr 18 09:56:57 2007] [error] [client 149.155.40.20] malformed header from script. Bad header=: mapview [Wed Apr 18 09:56:57 2007] [warn] /perl/Gallus_gallus/mapview did not send an HTTP header [Wed Apr 18 09:57:45 2007] [error] [client 149.155.42.148] malformed hea

Re: Malformed header from script

2007-04-16 Thread Robert Landrum
michael watson (IAH-C) wrote: Sorry for the confusion The code also actually attempts to print out HTML headers ie " etc" but these DO NOT come through to the webpage - instead, a bunch of special characters are printed out... Right... because the and tags are being (incorrectly) shov

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
April 2007 14:22 To: michael watson (IAH-C) Cc: Perrin Harkins; modperl@perl.apache.org Subject: Re: Malformed header from script michael watson (IAH-C) wrote: > If I view source in IE, the very top of the web page starts: > > Ensembl release 43: Gallus gallus Features on Chromosome 2

Re: Malformed header from script

2007-04-16 Thread Stephane Chazelas
On Mon, Apr 16, 2007 at 09:22:08AM -0400, Michael Peters wrote: > michael watson (IAH-C) wrote: > > > If I view source in IE, the very top of the web page starts: > > > > Ensembl release 43: Gallus gallus Features on Chromosome 23 > > 6042217-6042217 > > You can't see HTTP headers when doing a

Re: Malformed header from script

2007-04-16 Thread Michael Peters
michael watson (IAH-C) wrote: > If I view source in IE, the very top of the web page starts: > > Ensembl release 43: Gallus gallus Features on Chromosome 23 > 6042217-6042217 You can't see HTTP headers when doing a 'view source'. No browser will include them. In order to really see your HTTP h

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
Clinton Gormley; modperl Subject: RE: Malformed header from script On Mon, 2007-04-16 at 11:49 +0100, michael watson (IAH-C) wrote: > Hi > > Thanks for all your help. If I print out the header line myself, before > anything else is printed out, then for some reason none of the images

RE: Malformed header from script

2007-04-16 Thread Clinton Gormley
On Mon, 2007-04-16 at 11:49 +0100, michael watson (IAH-C) wrote: > Hi > > Thanks for all your help. If I print out the header line myself, before > anything else is printed out, then for some reason none of the images > are produced. Images are produced dynamically using perl and GD. If I > lea

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
1:32 To: michael watson (IAH-C) Cc: Clinton Gormley; modperl Subject: RE: Malformed header from script On Mon, 2007-04-16 at 11:12 +0100, michael watson (IAH-C) wrote: > That does indeed make the HTML headers come through, however, I get > about 20 "Content-type: text/html" lines i

RE: Malformed header from script

2007-04-16 Thread Clinton Gormley
On Mon, 2007-04-16 at 11:12 +0100, michael watson (IAH-C) wrote: > That does indeed make the HTML headers come through, however, I get > about 20 "Content-type: text/html" lines in my web page because that > print function is used to print out ALL HTML, not just the headers. Then just print the he

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
that should be handling these. So each perl script under /perl should specifically print out a "Content-type: text/html\n\n" line? -Original Message- From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: 16 April 2007 10:38 To: michael watson (IAH-C) Cc: modperl Subject: RE:

RE: Malformed header from script

2007-04-16 Thread Clinton Gormley
t;print ("Content-Type: text/html\n\n") ...before you print the rest. I may be wrong, but it is easy enough to figure out if it works or not. clint > > My error logs say: > > [Mon Apr 16 10:24:07 2007] [error] [client 149.155.42.148] malformed > header from script. Bad

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
If I was missing the "Content-type: text/html" line, then my web browser would not display anything except the "500: Internal Server Error" line, wouldn't it? My error logs say: [Mon Apr 16 10:24:07 2007] [error] [client 149.155.42.148] malformed header from script. Bad

RE: Malformed header from script

2007-04-16 Thread Clinton Gormley
> r is Apache2::RequestRec=SCALAR(0x98d2108) > I was given ' Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml"; xml:lang="en-gb" > lang="en-gb"> > > ' > > So, the perl code is using an Apache2::RequestRec object to print out > the he

RE: Malformed header from script

2007-04-16 Thread michael watson \(IAH-C\)
essage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: 13 April 2007 14:08 To: michael watson (IAH-C) Cc: modperl@perl.apache.org Subject: Re: Malformed header from script On 4/13/07, michael watson (IAH-C) <[EMAIL PROTECTED]> wrote: > The script in questi

Re: Malformed header from script

2007-04-13 Thread Perrin Harkins
On 4/13/07, michael watson (IAH-C) <[EMAIL PROTECTED]> wrote: The script in question certainly attempts to print out "Content-type: text/html" and a whole " blah" line, but these don't seem to be coming through Can you show us the code you use to print the header, and the part of httpd.conf whe

Malformed header from script

2007-04-13 Thread michael watson \(IAH-C\)
Server 4 and Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.0. My apache log file is filling up with stuff like this: [Fri Apr 13 09:32:38 2007] [error] [client 149.155.42.148] malformed header from script. Bad header=: mapview [Fri Apr 13 09:32:38 2007] [warn] /perl/Gallus_gallus/mapview did not