httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26554] - ApacheBench: add ability to override User-Agent header
Date Mon, 02 Feb 2004 18:38:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26554>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26554

ApacheBench: add ability to override User-Agent header





------- Additional Comments From peterw@tux.org  2004-02-02 18:38 -------
Jeff, that certainly works (a quick read of RFC 1945 suggests that the
User-Agent header can come later in the request message, so moving the
User-Agent to after the Accept request header appears to be RFC-compliant), and
I've attached another patch implementing this. 

I think I prefer the -U plan though, as
 * it's less fragile (strstr() is case-sensitive & the more users type, the
greater chance of error) 
 * this general idea, whether implemented as -U or special handling of -H,
requires the -h usage() information to be updated, and requires about the same
amount of code changes (so there's not much "economy" argument against -U)
 * [weak argument] adding -U is backwards-compatible (doesn't alter the order of
headers or change the behavior of -H in any situations)

But I'd be happy either way, as either approach gives users more flexibility.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message