[mp1] post2get and multipart/form-data

[prev] [thread] [next] [Date index for 2005/05/06]

From: Frank Maas
Subject: [mp1] post2get and multipart/form-data
Date: 12:54 on 06 May 2005
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

Re: [mp1] post2get and multipart/form-data
Stas Bekman 07:02 on 07 May 2005

Re: [mp1] post2get and multipart/form-data
Frank Maas 22:16 on 07 May 2005

Re: [mp1] post2get and multipart/form-data
Stas Bekman 04:08 on 08 May 2005

Generated at 06:57 on 17 May 2005 by mariachi v0.52