You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Trevor Joerges [SendMIME Software]" <tj...@sendmime.com> on 2002/11/21 18:16:00 UTC

Newbie: Why does my script prompt to be downloaded intermittantly?

I'm running mod_perl v1.0 with Apache v 1.3.27 on Solaris 2.6.

I cannot figure out why my scripts occasionally prompt to be downloaded. The
behavior is intermittent. I've read the mod_perl pitfalls and the
"PerlSendHeader" is set to "on" in my config file. Is there something else I
need to add or remove?

I'm not sure what other config information I should be sending with my post.
My first time using the list.

Thanks in advance.
Trevor Joerges



RE: Newbie: Why does my script prompt to be downloaded intermittantly?

Posted by Gareth Kirwan <gb...@thermeoneurope.com>.
Trevor - is there anything that might be sending output to the I/O handle
before the header ?

That could disrupt the type....

Gareth

-----Original Message-----
From: Trevor Joerges [SendMIME Software] [mailto:tjoerges@sendmime.com]
Sent: 21 November 2002 17:16
To: modperl@perl.apache.org
Subject: Newbie: Why does my script prompt to be downloaded
intermittantly?


I'm running mod_perl v1.0 with Apache v 1.3.27 on Solaris 2.6.

I cannot figure out why my scripts occasionally prompt to be downloaded. The
behavior is intermittent. I've read the mod_perl pitfalls and the
"PerlSendHeader" is set to "on" in my config file. Is there something else I
need to add or remove?

I'm not sure what other config information I should be sending with my post.
My first time using the list.

Thanks in advance.
Trevor Joerges




Re: Newbie: Why does my script prompt to be downloaded intermittantly?

Posted by "Trevor Joerges [SendMIME Software]" <tj...@sendmime.com>.
Thanks for all the info.

Normally I set the $CGI::HEADERS_ONCE variable in CGI.pm in each of my CGI
scripts but recently switched that behavior to actually modify the CGI.pm
module directly. I also recently installed ActivePerl for Solaris instead of
compiling Perl myself and forgot to reset this.

I think I'll switch back to my original ways.

This seems to have corrected the file download issue. Now I just need to do
more CGI to MOD_Perl reading.

Thanks for the help Rafiq & Gareth. You both hit the nail on the head.

Kind regards,
Trevor Joerges


----- Original Message -----
From: "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>
To: "Trevor Joerges [SendMIME Software]" <tj...@sendmime.com>
Cc: <mo...@perl.apache.org>
Sent: Thursday, November 21, 2002 1:22 PM
Subject: Re: Newbie: Why does my script prompt to be downloaded
intermittantly?


> On Thu, 21 Nov 2002, Trevor Joerges [SendMIME Software] wrote:
> > behavior is intermittent. I've read the mod_perl pitfalls and the
> > "PerlSendHeader" is set to "on" in my config file. Is there something
else I
> > need to add or remove?
> Hi Treveor,
>
> I've seen three fixes to this sort of problem in the past, so you might
> want to see if any of the following apply to your case:
>
> 1) Changing Browser - Galeon had me testing for days, when I could
> clearly see that I was getting the correct header, via telnet to the port.
> See below.
>
> 2) Turning PerlSendHeader Off and sending your own headers.
> The problem was probably somewhere else, but sending my own
> headers fixed it.  Then again, the problem might not have been elsewhere.
>
> 3) Make sure you're not sending your header twice.  With
> PerlSendHeader being on or off, plus a code segment sending a header/or
> some gibber elsewhere, or even a stray 'print' to STDOUT from some other
> place, before the header is dispatched.
>
> I've had header trouble a couple of time and have often found telneting to
> the vhost to be a very handy detector of what might be going wrong.  If
> that fails then paracetamol is usually a good cure.
>
> My late night 0.02 EU.
>
> R.
>
>



Re: Newbie: Why does my script prompt to be downloaded intermittantly?

Posted by "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>.
On Thu, 21 Nov 2002, Trevor Joerges [SendMIME Software] wrote:
> behavior is intermittent. I've read the mod_perl pitfalls and the
> "PerlSendHeader" is set to "on" in my config file. Is there something else I
> need to add or remove?
Hi Treveor,

I've seen three fixes to this sort of problem in the past, so you might
want to see if any of the following apply to your case:

	1) Changing Browser - Galeon had me testing for days, when I could
clearly see that I was getting the correct header, via telnet to the port.
See below.

	2) Turning PerlSendHeader Off and sending your own headers.
	The problem was probably somewhere else, but sending my own
headers fixed it.  Then again, the problem might not have been elsewhere.

	3) Make sure you're not sending your header twice.  With
PerlSendHeader being on or off, plus a code segment sending a header/or
some gibber elsewhere, or even a stray 'print' to STDOUT from some other
place, before the header is dispatched.

I've had header trouble a couple of time and have often found telneting to
the vhost to be a very handy detector of what might be going wrong.  If
that fails then paracetamol is usually a good cure.

My late night 0.02 EU.

R.