You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Pramod Sokke <pr...@investools.com> on 2000/11/08 04:03:35 UTC
Problem reading from STDIN
Hi all,
We've moved all our old perl cgi scripts to run under mod_perl(PerlRun) now.
There's a peculiar problem I'm seeing with POST requests. Basically, I'm not able to read anything from stdin at all.
For eg, if I just have a form that takes some data, that data is just not available at all.
I know this is a very fundamental thing, but I'm definitely missing something here.
Could anybody please throw some light on this?
mod_perl 1.24/Apache 1.3.12/Perl 5.005_03
Thanks,
Pramod
Re: Problem reading from STDIN
Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,
On Wed, 8 Nov 2000, Pramod Sokke wrote:
> there are lot there that seem to indicate that the only way to
> access STDIN under mod_perl is to use Apache::Request.
> Is that right?
If your code is clean I'm sure you'll be able to use Apache::Registry
and things should work just as if you were using CGI.
See the 'Porting' section of the Guide for more info about STDIN (and
grep for "use strict" while you're at it:).
73,
Ged.
Re: Problem reading from STDIN
Posted by Pramod Sokke <pr...@investools.com>.
No I don't have the <Limit> directive.
Also, I read a couple of other similar questions on the list. While I didn't
find anything specific to this question, there are lot there that seem to
indicate that the only way to access STDIN under mod_perl is to use
Apache::Request.
Is that right? Does this mean I have to change our legacy code to reflect
this?
Thanks,
Pramod
----- Original Message -----
From: G.W. Haywood <ge...@www.jubileegroup.co.uk>
To: Pramod Sokke <pr...@investools.com>
Cc: modperl <mo...@apache.org>
Sent: Wednesday, November 08, 2000 9:26 AM
Subject: Re: Problem reading from STDIN
> Hi there,
>
> On Tue, 7 Nov 2000, Pramod Sokke wrote:
>
> > I'm not able to read anything from stdin at all.
>
> Have you got a <Limit> directive somewhere in the config?
>
> 73,
> Ged.
>
Re: Problem reading from STDIN
Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,
On Tue, 7 Nov 2000, Pramod Sokke wrote:
> I'm not able to read anything from stdin at all.
Have you got a <Limit> directive somewhere in the config?
73,
Ged.