Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 61473 invoked from network); 30 Nov 2009 17:14:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 17:14:06 -0000 Received: (qmail 35440 invoked by uid 500); 30 Nov 2009 17:14:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 35366 invoked by uid 500); 30 Nov 2009 17:14:02 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 35333 invoked by uid 99); 30 Nov 2009 17:14:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 17:14:02 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 17:14:00 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id CEE3F22608D for ; Mon, 30 Nov 2009 18:13:38 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g6SpJqw-6AmV for ; Mon, 30 Nov 2009 18:13:38 +0100 (CET) Received: from [192.168.245.129] (p549EAB05.dip0.t-ipconnect.de [84.158.171.5]) by tor.combios.es (Postfix) with ESMTPA id 7EF0622607E for ; Mon, 30 Nov 2009 18:13:38 +0100 (CET) Message-ID: <4B13FD26.1000007@ice-sa.com> Date: Mon, 30 Nov 2009 18:13:10 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AJP with HTTPD - Buffer Size on long URLs References: <99C8B2929B39C24493377AC7A121E21F9680145691@USEA-EXCH8.na.uis.unisys.com> <99C8B2929B39C24493377AC7A121E21F9680145697@USEA-EXCH8.na.uis.unisys.com> <4B111349.6030104@ice-sa.com> <948126CDFED9634D8B12AF27F009EDC501C082EF@oce-exbe03-v.oce.net> <4B138102.9060403@ice-sa.com> <948126CDFED9634D8B12AF27F009EDC501C083A3@oce-exbe03-v.oce.net> <99C8B2929B39C24493377AC7A121E21F9680145CD8@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: <99C8B2929B39C24493377AC7A121E21F9680145CD8@USEA-EXCH8.na.uis.unisys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Caldarale, Charles R wrote: >> From: Looijmans, Mike [mailto:mike.looijmans@oce.com] >> Subject: RE: AJP with HTTPD - Buffer Size on long URLs >> >>> Looijmans, Mike wrote: >>>> The RFC specs a maximum URL size of 4k. >>> Where precisely did you find that ? >> RFC2068 (old HTTP/1.1 spec) > > Citing an obsoleted RFC is a bit odd. Regardless, the actual wording from section 3.2.1 of 2068 and 2616 (the superseding document) is: > > "The HTTP protocol does not place any a priori limit on the length of a URI." > > Followed shortly by: > > "A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15)." > > (Note the SHOULD, not MUST.) > > There is also a warning note: > > "Note: Servers should be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations may not properly support these lengths." > > No mention of a 4K limit anywhere that I can find. > Right. +1. My point here (toward Mike) was that one should avoid propagating rumors or incorrect information, on a list that is read by unsuspecting users which may then believe that this is the ultimate truth. This being said, the specs do not set a specific limit to a URI length, but it is certain that any server software has a practical one, if only to avoid some types of DoS attacks. So my point to the original poster, was to recommend the use of a POST rather than a GET, if the application is such that it already now exceeds 8K for a URI. In addition, even if one knows how many individual input fields there may be in a form which sends such a URI, and how long each field is in principle, it is much harder to predict how long a URI this will actually generate once URI-escaping has taken place, and each non-ASCII character has been replaced by a triplet of bytes. There is no such arbitrary limit (or if there is, it is MUCH higher) for the body of a POST. In addition, at least for the body of a POST, there is a possibility of indicating the character set of the data, which in fact there is not for data contained in a URI. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org