You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Thomas K. Burkholder" <bu...@dogrobber.com> on 2001/05/21 10:35:11 UTC

libapreq behaving differently on RedHat vs Debian...

Hi,

I'm using libapreq to do http file uploads, works just fine on my
Debian/unstable desktop system, running Apache 1.3.14, mod_perl 1.25.

When I use the exact same code to do the same on my RedHat 7.0 server,
running Apache 1.3.14, mod_perl 1.24 - the access_log shows that the
POST occurs, but the log_error() statements that I have in the handler
for the POST request aren't executed - and the browser gets redirected
to /, apparently after the upload occurs, since the browser hangs for
about that long.

Anyone know why this is?  The reason I'm using modperl 1.24 on the
RedHat system and 1.25 on the Debian system is that that is that 1.25 is
what debian's dselect gave me, and 1.24 on the RedHat system is what I
downloaded from CPAN.  Is this a known problem in 1.24?  If so, does
1.25 solve it for RedHat?

The HTML looks something like this:

<HEAD>
</HEAD>
<BODY bgcolor="#FFFFFF">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" TARGET="main"
ACTION="areaj?pg=upload">
<TABLE>
<TR>
<TD>Select File:</TD>
<TD><INPUT TYPE="file" NAME="filename" SIZE=40 MAXLENGTH=200></TD>
</TR>
<TR>
<TD></TD>
<TD><INPUT TYPE="submit" NAME="Upload" VALUE="Upload"></TD>
</TR>
</TABLE>
</FORM>
</BODY>

And showing the perl isn't really important, since it doesn't get
called.

Any ideas, anyone?

Thanks,

//Thomas
Thomas K. Burkholder
burkhold@dogrobber.com


Re: libapreq behaving differently on RedHat vs Debian...

Posted by "Thomas K. Burkholder" <bu...@dogrobber.com>.
You are totally correct;  you've saved me the cost of a new monitor, which
was about to receive my forehead through it if I stared at this any longer.

Can't believe I made such a silly error - I have other forms where I
deliberately used the hidden field in exactly the way you point out, to
avoid the possibility of this problem.

Thanks!!!

//Thomas
Thomas K. Burkholder
burkhold@dogrobber.com

harm@nieuw.nl wrote:

> On Mon, May 21, 2001 at 01:35:11AM -0700, Thomas K. Burkholder wrote:
> > Hi,
> >
> > I'm using libapreq to do http file uploads, works just fine on my
> > Debian/unstable desktop system, running Apache 1.3.14, mod_perl 1.25.
> >
>
> <...>
>
> >
> > The HTML looks something like this:
> >
> > <HEAD>
> > </HEAD>
> > <BODY bgcolor="#FFFFFF">
> > <FORM METHOD="POST" ENCTYPE="multipart/form-data" TARGET="main"
> > ACTION="areaj?pg=upload">
>
> Wild guess, change it in:
>
> <FORM METHOD="POST" ENCTYPE="multipart/form-data" TARGET="main"
> ACTION="areaj">
> <input type=hidden name="pg" value="upload">
>
> > <TABLE>
> > <TR>
> > <TD>Select File:</TD>
> > <TD><INPUT TYPE="file" NAME="filename" SIZE=40 MAXLENGTH=200></TD>
> > </TR>
> > <TR>
> > <TD></TD>
> > <TD><INPUT TYPE="submit" NAME="Upload" VALUE="Upload"></TD>
> > </TR>
> > </TABLE>
> > </FORM>
> > </BODY>
> >
> > And showing the perl isn't really important, since it doesn't get
> > called.
> >
> > Any ideas, anyone?
> >
> > Thanks,
> >
> > //Thomas
> > Thomas K. Burkholder
> > burkhold@dogrobber.com
> >
>
> --
>                                 The Moon is Waning Crescent (4% of Full)
>                                                   nieuw.nl - 2dehands.nl


Re: libapreq behaving differently on RedHat vs Debian...

Posted by ha...@nieuw.nl.
On Mon, May 21, 2001 at 01:35:11AM -0700, Thomas K. Burkholder wrote:
> Hi,
> 
> I'm using libapreq to do http file uploads, works just fine on my
> Debian/unstable desktop system, running Apache 1.3.14, mod_perl 1.25.
> 

<...>

> 
> The HTML looks something like this:
> 
> <HEAD>
> </HEAD>
> <BODY bgcolor="#FFFFFF">
> <FORM METHOD="POST" ENCTYPE="multipart/form-data" TARGET="main"
> ACTION="areaj?pg=upload">

Wild guess, change it in:

<FORM METHOD="POST" ENCTYPE="multipart/form-data" TARGET="main"
ACTION="areaj">
<input type=hidden name="pg" value="upload">

> <TABLE>
> <TR>
> <TD>Select File:</TD>
> <TD><INPUT TYPE="file" NAME="filename" SIZE=40 MAXLENGTH=200></TD>
> </TR>
> <TR>
> <TD></TD>
> <TD><INPUT TYPE="submit" NAME="Upload" VALUE="Upload"></TD>
> </TR>
> </TABLE>
> </FORM>
> </BODY>
> 
> And showing the perl isn't really important, since it doesn't get
> called.
> 
> Any ideas, anyone?
> 
> Thanks,
> 
> //Thomas
> Thomas K. Burkholder
> burkhold@dogrobber.com
> 

-- 
                                The Moon is Waning Crescent (4% of Full)
                                                  nieuw.nl - 2dehands.nl