Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 32516 invoked from network); 5 Apr 2006 03:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 03:21:44 -0000 Received: (qmail 7573 invoked by uid 500); 5 Apr 2006 03:21:39 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 7514 invoked by uid 500); 5 Apr 2006 03:21:39 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 7503 invoked by uid 99); 5 Apr 2006 03:21:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 20:21:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of craigmcc@gmail.com designates 64.233.162.197 as permitted sender) Received: from [64.233.162.197] (HELO zproxy.gmail.com) (64.233.162.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 20:21:38 -0700 Received: by zproxy.gmail.com with SMTP id o37so2375551nzf for ; Tue, 04 Apr 2006 20:21:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references; b=muVJYaC4wrtomGc4mJ5dxnzG+nwVv3ThhgyHr0TqnDQZXDI110AsHQx582Vz2s7pJ6EoDjt2KYIlsXoqanDh0x9tZGNMgPVZxwNzSkmwng2JtNnypE5h1lVq+VlhxroYepucGLk30BtmAyVWL0mpJ/+4vk7TB0l1JU/QVC8KP0c= Received: by 10.65.43.8 with SMTP id v8mr1376625qbj; Tue, 04 Apr 2006 20:21:17 -0700 (PDT) Received: by 10.64.178.18 with HTTP; Tue, 4 Apr 2006 20:21:17 -0700 (PDT) Message-ID: Date: Tue, 4 Apr 2006 20:21:17 -0700 From: "Craig McClanahan" Sender: craigmcc@gmail.com To: "Jakarta Commons Users List" Subject: Re: [fileupload] Form params from the request command line? In-Reply-To: <16d6c6200604041956k14a4d76ax3cd4f43f0e4e3a3c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11722_17119541.1144207277316" References: <44330FF2.1000605@computer.org> <44331161.1030200@schliesing.de> <44331F65.9040302@webperformance.com> <16d6c6200604041956k14a4d76ax3cd4f43f0e4e3a3c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11722_17119541.1144207277316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/4/06, Martin Cooper wrote: > > On 4/4/06, Craig McClanahan wrote: > > > > On 4/4/06, Christopher L Merrill wrote: > > > > > > Sven Schliesing wrote: > > > > I know that this is a direct answer to your question, but why do yo= u > > mix > > > > GET-params to a POST-Request? I'm not pretty sure if this is even > > > > supported in the HTTP 1.1-standard. > > > > > > I am fairly certain there is no limitation against this usage in the > > HTTP > > > spec. If it's there, someone please point me to it...I'd like to see > it. > > > > > > We find this particular case used quite frequently by our > customers. In > > > fact, I'm looking at one of those customer sites right now - and it > has > > a > > > mix of both in the login form. > > > > > > In the Java arena the Servlet spec has explicit provisions describing > how > > this scenario (combination of query parameters on the URL and post data > > parameters) is handled, and it's supported in a well-defined > manner. See > > section SRV.4.1 of the servlet spec. > > > Well, yes and no. The spec does state how the combination should be > handled, > but it then goes on to state that POST data is only available if it's > application/x-www-form-urlencoded data. In fact, it is not possible to > implement the spec to the letter for other types of POST data unless the > container provides support for those other types. That's because there's > no > way (short of an explicitly configured servlet filter) for an external > component such as Commons FileUpload to combine the POST parameters and > the > query parameters and present that combination to the user via the servlet > API. Agreed that the current FileUpload implementation doesn't violate the servlet spec (which only deals with application/x-www-form-urlencoded), but it would sure be cool if we could have Commons FileUpload simulate that mix of query parameters from the URL and posted content from a multipart/form-data post so that applications would be able to not worry about the differences. If it takes a filter and a request wrapper to do that, so be it. For me, the fact that filters require Servlet 2.3 or later is not an issue (although it might be for others). Technically, that's a bug in the spec, although I'll concede it's a minor > one. ;-) On the other hand, why the Servlet EG has never yet baked in > support for other types of POST content baffles me. Even a hook so that > content type handlers can register with the container (and thus be able t= o > follow the spec to the letter in this regard) would be a great leap > forward. The servlet spec lacks a whole *ton* of things that it really needs to address :-(. I've got a half-completed blog entry on that topic that I hop= e to publish someday, now that I'm actually not flying on airplanes for two weeks in a row. But after that, life gets crazy again, so no guarantees. -- > Martin Cooper Craig ------=_Part_11722_17119541.1144207277316--