[mp1] post2get and multipart/form-data
[prev]
[thread]
[next]
[Date index for 2005/05/06]
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 :-(
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?), (b) it eats POST
data in a way that CGI can no longer handle it properly, (c) if I want to
change to Apache2 every usage of APR must be rechecked.
So... any thoughts...?
Kind regards,
Frank
 |
[mp1] post2get and multipart/form-data
Frank Maas 12:54 on 06 May 2005
|