You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2004/04/09 14:13:30 UTC

DO NOT REPLY [Bug 28309] New: - HTTP Request has random capitalization, breaking some webservers

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28309>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28309

HTTP Request has random capitalization, breaking some webservers

           Summary: HTTP Request has random capitalization, breaking some
                    webservers
           Product: JMeter
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: adam@tmachine.net


According to RFC2616, header fields are capitalized first-letter of each word.

A grammar is given for e.g. Content-Length here:

  http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13

The RFC states that things are case insensitive unless stated otherwise. 
However, not all webservers are equal, and I'm trying to run tests against one 
that does exact-case matches.

JMeter uses a random mix of capitalization. Sometimes it does as in the RFC, 
sometimes it doesn't.

Specifically, on POST requests, it uses "Content-length" instead of "Content-
Length". This means it's requests are being rejected by the server I'm trying 
to test. All web-browsers appear to use the exact capitalization as listed in 
the RFC - Mozilla, MSIE, netscape, and even funky ones like Fresco are 
regularly accessing the server without problems.

The webserver behaviour is not surprising (nor, I think, unique to that 
server) simply because BNF would normally be case-sensitive, so the 
implication on reading the RFC is case-sensitivity (and the note on case 
INsensitivity by default is subtly placed in a completely different part of 
the doc). Infrequent readers of RFCs probably don't notice it.

PS the build I can download today is v2.0.0, but this form only goes up to 
1.9.x. I used whatever latest real release (not nightly build) was available 
yesterday.

PPS all mail sent to this address will automatically be deleted. If anyone 
wants access to this account the password is "password". It would be an 
understatement to say that I resent being forced to get a password for a 
completely pointless protection on a bugzilla account for each of the hundred 
or so open-source/BZ projects I find bugs for. What am I afraid of, that some 
malicious person will login with my ID and post rude words? Get real.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org