httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Millikan" <gmilli...@t1shopper.com>
Subject RE: [users@httpd] Custom Log Format -> Adding milliseconds to timestamp -> %{format}t
Date Thu, 18 Feb 2010 18:40:42 GMT
Dan,

Yes, I suppose adding milliseconds to the request header using mod_headers
with a custom header name like "Milliseconds" would work (example below).
It would have to be a custom header because it appears that milliseconds
cannot be appended to any "normal" date time fields since the HTTP 1.1 spec
only permits times in seconds
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3).  

I wonder how much overhead adding custom headers to every request adds in
CPU time + RAM?

#Config line for mod_headers
RequestHeader set Milliseconds "%t"

Thanks,

http://www.t1shopper.com/

PS. There's a part of our site that dumps the Client's headers (link below).
We'd have to remove the custom header on this part of the web site otherwise
people would say, "My browser didn't send that header!"  So this solution
works only most of the time for us.
http://www.t1shopper.com/tools/http-headers.php

Mime
View raw message