CGI apps receiving incomplete POST parameters

[prev] [thread] [next] [Date index for 2004/12/22]

From: Kurt Newman
Subject: CGI apps receiving incomplete POST parameters
Date: 23:04 on 22 Dec 2004
--=-Hdv8Qn/iBMeVureTx2ik
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl 1.99 on
RedHat 9.

The issue I'm having are for those applications that attempt to POST
data (e.g. from a form) that are, for the most part, pretty large (e.g.
46kB).  Unfortunately, with this newer version, the applications aren't
receiving the full POST'd parameters.

To best describe what I'm talking about, here are two examples.  For
each one, you'll see some version information along with a form that
have 500 pre-checked boxes. (each has large value names to help increase
the POST size).  To test this, go to the very end of the form and click
'Submit Query'.

Working (Apache 1.3.x using mod_perl 1.26):
https://www.globaldataguard.net/perl/mycheckbox.cgi

Broken (Apache 2.0.40 using mod_perl 1.99):
https://www.globaldataguard.net:5043/perl/mycheckbox.cgi

Each version will attempt to print out their entire parameter list using
CGi.pm's Dump() subroutine.  The "working" version will print out a
complete paramter list, whereas the "broken" version arbitrarily lops
off the data.

To ensure that it wasn't some odd code behavior or even the web server,
I took the same mycheckbox.cgi code and reconfigured the webserver to
use mod_cgi (instead of mod_perl).  When I do this, all works as
intended (except for it not being under mod_perl of course).

Thank you,
Kurt


--=-Hdv8Qn/iBMeVureTx2ik
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBByf2C0rcig5YkL7ERAtphAJ9Tc4omC13pBY7IuLWalCln7k/GkQCfdZe1
2w3QZ/uoX8MrVosfMlXAp5A=
=9ysT
-----END PGP SIGNATURE-----

--=-Hdv8Qn/iBMeVureTx2ik--

CGI apps receiving incomplete POST parameters
Kurt Newman 23:04 on 22 Dec 2004

Re: CGI apps receiving incomplete POST parameters
Perrin Harkins 17:43 on 23 Dec 2004

Re: CGI apps receiving incomplete POST parameters
Jay Scherrer 00:23 on 23 Dec 2004

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52