logo       

Re: Help! multipart/form-data use GET, not POST: msg#00041

text.xml.resin.user

Subject: Re: Help! multipart/form-data use GET, not POST

Hiroshi Iwatani wrote:
Serge Knystautas wrote:
> If you use the multipart/form-data encoding, you need to tell resin to
> decode it.
>
> http://www.caucho.com/resin-2.1/ref/app-config.xtp#multipart-form
Setting enable='true' in resin.conf doesn't work. Still, GET method is
used for multipart/form-data. Besides, ENCTYPE attr and
multipart/form-data value are standard parts of HTML standard and
they are very commonly used for invoking POST method. So, the server
default should NOT disable them. It certainly surprises common users.

If this surprises users, then they're not used to servlets. This is the way it's been (unfriendly) forever and written in the spec.

If you want to use this for GET, I don't think any servlet engine or add-on is prepared for that. You'll have to write your own code to handle retrieving the data from the querystring and passing it through a MIME parser.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@xxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise