Requiring any specific order on HTTP response headers is
completely bogus...

On Mar 5, 2008, at 11:06 AM, George Sexton wrote:



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:
...
<Connector server="test123" port="8080"...>

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
George Sexton
MH Software, Inc.
Voice: +1 303 438 9585
URL:   http://www.mhsoftware.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to