=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 26 November 2003 09:38, Jonathan Swartz wrote:
>
> Isn't the problem that $r->param reads all the POST content, leaving
> nothing for Mason? Or is this an old problem? I remember this used to be
> the case with $r->content.
>
This is true, if you one routine uses 'instance' and another 'new' to get t=
he=20
Apache::Request object. The first one to call param or upload will slurp al=
l=20
of the POST content, leaving nothing for the other one.
That is why, as Dave Rolsky pointed out, both must use 'instance'. HTML::Ma=
son=20
already uses 'instance' - this was fixed long ago. My handler used 'new'.=20
Once I changed that to 'instance', everything worked wonderfully.
=2D --=20
Jonathan M. Gardner
Web Developer, Amazon.com
jonagard@... - (206) 266-2906
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/xPLeBFeYcclU5Q0RAkD3AKDMD7EMVTOEnZi7/Dj+iyCIB3mbgQCgqquv
eip99P1TiS31hNrGmJryCos=3D
=3DO9YB
=2D----END PGP SIGNATURE-----
|