Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 29610 invoked from network); 5 Mar 2008 16:07:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 16:07:43 -0000 Received: (qmail 5390 invoked by uid 500); 5 Mar 2008 16:07:23 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 5337 invoked by uid 500); 5 Mar 2008 16:07:23 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 5162 invoked by uid 99); 5 Mar 2008 16:07:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 08:07:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gsexton@mhsoftware.com designates 216.17.130.186 as permitted sender) Received: from [216.17.130.186] (HELO mail.mhsoftware.com) (216.17.130.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 16:06:45 +0000 Received: from [192.168.0.254] (c-24-8-34-101.hsd1.co.comcast.net [24.8.34.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mhsoftware.com (Postfix) with ESMTP id 5A51E125849E for ; Wed, 5 Mar 2008 09:06:54 -0700 (MST) Message-ID: <47CEC51D.9070706@mhsoftware.com> Date: Wed, 05 Mar 2008 09:06:53 -0700 From: George Sexton User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Reorder the http header generated by tomcat References: <5D2BB7E5-6485-43DD-9DB3-9EEF3FB6648C@jaguNET.com> In-Reply-To: <5D2BB7E5-6485-43DD-9DB3-9EEF3FB6648C@jaguNET.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Jim Jagielski wrote: > Why? Evidently because he doesn't understand how to write a sort routine that will put them in the order he would like... So, he wants you to do it for him. I can sort of understand the desire. I had to write an iCal parser, and it turns out that it's a lot easier to do if the order of the fields is somewhat deterministic. Still, it's no excuse for not handling it in his own code if his code has a dependency on the order. > > On Mar 5, 2008, at 1:07 AM, Hanks Wang (hanwan) wrote: > >> Hi all, >> >> I'd like to describe my problem clearer: >> >> Currently the http header which generated by Tomcat is something like: >> >> Accept-Ranges: none >> Content-Type: text/plain >> Server: test123 >> >> Can I change it into below order? >> Server: test123 >> Accept-Ranges: none >> Content-Type: text/plain >> >> Thanks! >> Han >> >> -----Original Message----- >> From: Hanks Wang (hanwan) >> Sent: Wednesday, March 05, 2008 10:12 AM >> To: Tomcat Developers List >> Subject: Reorder the http header generate by tomcat >> >> Hi all, >> I edit server.xml as: >> ... >> >> >> It will add "server" item in my response header, so now the http header >> is something like: >> Cache-Control: no-store, no-cache, must-revalidate >> Accept-Ranges: none >> Content-Type: text/plain >> Connection: close >> Server: test123 >> >> The "Server" is put to the last item of the http header. >> >> So my question is : Is there a way to reorder the http header instead of >> having tomcat formulate them? >> >> Thanks >> Hanks >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: dev-help@tomcat.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > -- George Sexton MH Software, Inc. Voice: +1 303 438 9585 URL: http://www.mhsoftware.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org