Re: [mp1] post2get and multipart/form-data
[prev]
[thread]
[next]
[Date index for 2005/05/07]
Frank Maas wrote:
> Hi,
>
> After some time doing other things, I recently started to upgrade our
> installation. While doing this I got the new version of CGI.pm that uses
> XHMTL for default and, as a result, uses multipart/form-data as default
> encoding...
> Our websystem works in a 2-phase manner: a user requests an URI and the
> server transforms this initial request in serving a SSI template. The
> original URI is included from this SSI (thus as a subrequest). To make
> this work I convert POST requests to GET requests (so the parameters are
> not lost, based on a Geoff-example) and make sure that they get populated
> to the subrequest (via a transhandler). This works... worked :-(
what has changed since it was working?
> The content method of Apache.pm explicitly bails out if the form is not
> send in the old way. Now I can get CGI.pm to do this (btw, this is not as
> easy as it is described), but since I want to support uploads at one time
> I must deal with the multipart thing.
>
> Standard disclaimer: I tried to google this problem and searched throug
> the mailinglist, but the only solutions I found used Apache::Request. And
> I try to avoid using it because (a) it is heavy (is it?),
you must be kidding, Frank. libapreq heavy? it's much lighter and faster
than CGI.pm, check the benchmarks:
http://modperlbook.org/html/ch13_02.html
> (b) it eats POST data in a way that CGI can no longer handle it properly,
right, which is why you should move to Apache2, where it doesn't happen.
(c) if I want to change to Apache2 every usage of APR must be rechecked.
what do you mean?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
 |
 |
Re: [mp1] post2get and multipart/form-data
Stas Bekman 07:02 on 07 May 2005
|