https://issues.apache.org/bugzilla/show_bug.cgi?id=54351

            Bug ID: 54351
           Summary: HC4 and URI fragments is failing
           Product: JMeter
           Version: 2.8
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

When using HC4 and a URI fragments (i.e.
http://en.wikipedia.org/wiki/Fragment_identifier#Examples) then the fragment
part ("#Examples") is also sent as part of the HTTP Request.

In previous versions: HC3.1 and Java HTTP Samplers this didn't occurred.

I am unsure if that's a bug in JMeter or should be handled on HC side, but
debugging these samplers in JMeter code, shows that in HC3 we use:
httpMethod = new GetMethod(urlStr);
...
client.executeMethod(httpMethod);

While on HC4 we have a different usage:
httpRequest = new HttpGet(uri);
...
HttpResponse httpResponse = httpClient.execute(httpRequest, localContext); //
perform the sample


Seems like the previous implementation excluded the fragment part of the
request, following: http://tools.ietf.org/html/rfc3986#section-3.5  while the
new one doesn't.

This broken behavior causing errors for some applications, i.e. in my test, the
application fails to parse and serve the request.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to