You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Anthony Brock <ab...@georgefox.edu> on 2001/06/26 16:26:21 UTC

Re: mod_Perl 1.25, CGI.pm and POST

At 12:48 AM 06/26/2001 -0700, nc-zobeljo@netcologne.de wrote:
>At 15:50 25.06.2001 -0700, you wrote:
>
>[...]
>
>There has been a change in 1.25 concerning reading of STDIN (this is what
>POST does). Dough MacEachern mentioned this some days ago.
>
>IIRC $r->read() now returns nothing instaed of hanging if STDIN has
>already
>been read. I would conjecture that somehow your CGI.pm reads STDIN twice,
>overwriting the first read with said nothing.

Okay, after testing, I have narrowed the problem to existing ONLY when I 
add our PHP 4.0.5 module into the server configuration.

Basically, I created a simply CGI script to echo to the browser EVERYTHING 
the script received on STDIN from a POST. Once created, I deployed this on 
our new Apache server and an older Apache server which is still working. 
The new server never passes the POST to the script, while the old server 
does! However, once I removed the PHP module everything started working 
perfectly.

Does anyone know what mailing list I need to move this question to? Sorry 
for posting to the wrong group ...

>[...]
>
> >># This file is intended to be INCLUDED from an SHTML file,
> >>#   NOT directly executed!
>
>Did this ever work with POST? You can not POST to an SSI.
>
>Joachim

The comment was from the original script written about 3 years ago. I had 
forgotten to remove it and that original script has been used several times 
to 'seed' other scripts. It should have been deleted before I posted.

Actually, this has worked with POST for over a year. It's a CGI script used 
extensively by our librarians.

Tony

******************************************************************************
* Anthony Brock                                         abrock@georgefox.edu *
* Director of Network Services                         George Fox University *
******************************************************************************


Re: mod_Perl 1.25, CGI.pm and POST

Posted by darren chamberlain <dl...@users.sourceforge.net>.
Anthony Brock <ab...@georgefox.edu> said something to this effect on 06/26/2001:
> At 12:48 AM 06/26/2001 -0700, nc-zobeljo@netcologne.de wrote:
> >At 15:50 25.06.2001 -0700, you wrote:
> >There has been a change in 1.25 concerning reading of STDIN (this is what
> >POST does). Dough MacEachern mentioned this some days ago.
> >
> >IIRC $r->read() now returns nothing instaed of hanging if STDIN has
> >already
> >been read. I would conjecture that somehow your CGI.pm reads STDIN twice,
> >overwriting the first read with said nothing.
> 
> Okay, after testing, I have narrowed the problem to existing ONLY when I 
> add our PHP 4.0.5 module into the server configuration.

This makes sense. PHP takes all the parameters and turns them
into PHP variables. PHP4 must do this at an earlier stage than
PHP3, sometime before the response phase (PHP3 did this during
the repsonse phase).

(darren)

-- 
I accept chaos. I'm not sure whether it accepts me. I know some people
are terrified of the bomb. But then some people are terrified to be
seen carrying a modern screen magazine. Experience teaches us that
silence terrified people the most.
    -- Bob Dylan