Bug 55531 - Proxy recording and redirects
Summary: Proxy recording and redirects
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.9
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2013-09-06 14:15 UTC by Sebb
Modified: 2013-09-10 23:30 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2013-09-06 14:15:12 UTC
The proxy recorder currently defaults to creating HTTP Samplers with "Follow redirects" enabled.

However the recorded samples include the redirects performed by the browser, so playback will follow the redirect and then send the recorded redirect sample.

Possible solutions include:
1) Default to not following redirects. 
That is easy to do, and the replay will always sample the original redirects. However, if the redirect is not static, the replay is likely to fail.

2) Somehow detect the samples that are the result of a redirect, and drop them from the recorded test (perhaps better, disable them?)
Comment 1 Sebb 2013-09-06 14:24:34 UTC
In the meantime, it would help to update the docs.
Comment 2 Sebb 2013-09-10 01:28:19 UTC
It's easy to detect a redirect - e.g. using HTTPSampleResult.isRedirect() - however it's not the redirect response sample that needs to be disabled - it's the subsequent samples that are the result of the redirect (and any further redirects). Keeping track of this is a bit trickier.
Comment 3 Sebb 2013-09-10 23:30:07 UTC
URL: http://svn.apache.org/r1521679
Proxy recording and redirects
Added code to disable redirected samples.
Bugzilla Id: 55531

Comment 4 The ASF infrastructure team 2022-09-24 20:37:55 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3228