jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikita Tovstoles <>
Subject Re: rewrite absolute URLs containing '/../'?
Date Wed, 07 Apr 2010 17:31:57 GMT
Unf. it's not my code, and changing it appears to be non-trivial.
We're using wicket which does relative 302 redirects on all initial
page requests. Suppose you've an app deployed at:


and a particular page at http://localhost/app/page/

1) First request to:

2) will result in 302 with Location:
http://localhost/app/page/ . . /page.0  (spaces added to avoid spam filter)

3) All major browsers (including IE6 and wget) will then issue a GET for:

but JMeter issues a GET for 2) as is. And that results in a 404.

There's been a discussion on this before:

and several JIRAs filed:

but, as I am sure you understand, we poor app developers, need to
load-test our stuff one way or another at the end of the day. I am not
clear (yet) whether:
-wicket returns the URL in 2) as you see it (in which case the fix
w/in wicket framework may indeed be easy) OR
-wicket redirects to . . /page.0 and it's either Tomcat or the client
that interprets it as what one sees in 2) (in which case the fix is
indeed easier in JMeter).

Hope the above explains my motivation

On Wed, Apr 7, 2010 at 10:01 AM, Deepak Shetty <> wrote:
> Jmeter fetches URL's that you ask to fetch (so you can format them any which
> way you want), so where are you seeing this problem? in redirects (you can
> deal with this by writing a little code instead of needing to change Jmeter
> code)?
> Jmeter Code should be in
> org.apache.jmeter.protocol.http.sampler.HTTPSampler/2  (not verified)
> regards
> deepak
> On Wed, Apr 7, 2010 at 9:47 AM, Nikita Tovstoles <
>> wrote:
>> Hello,
>> I need JMeter to rewrite absolute URLs containing '/../'  For example,
>> major
>> browsers & wget, given:
>> . . / products
>> (spaces added to avoid SPAM filtering)
>> will actually send HTTP GET for
>> JMeter 2.3.4 appears to send the initial URL verbatim, which results in a
>> 404 if pointed against a vanilla Tomcat.
>> We're using Wicket and URLs similar to the above are very common (Wicket
>> issues redirects like the above). I saw discussions from a couple of months
>> ago wrt whose responsibility it is to normalize the URL and read the RFC. I
>> understand positions on either side, but, unfortunately, do really need to
>> load test our app asap ;-
>> So, I am happy to fork JMeter locally, if needed. If the above indeed
>> requires a code change in JMeter (or HttpClient?) could someone please
>> respond with a hint as to where specifically I should look in src?
>> thanks
>> -nikita
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message