HTTPSampler.java currently handles all redirects itself and always calls HttpURLConnection.setFollowRedirects(false). It would be better if this behaviour were configurable, so that redirects could be delegated to the connection handler instead. Patch follows.
Created attachment 5848 [details] Allow delegation of redirects
Added check for HTTPSampler.delegateRedirects JMeter property (default false) to control if redirects handled locally or by URLConnection
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1076