When you say a server side redirect you mean a 3xx status code right? Configure your sampler to not follow redirect/automatically (uncheck it) - add a regex extractor to extract the location Header (select headers in response field to check) and then write another sampler to follow this header (after replacing whatever you want)
On Tue, Sep 24, 2013 at 7:13 AM, Ophir from BlazeMeter < [email protected]> wrote: > Our developer hard-coded the hostname in the code which does a server side > redirect if you are not logged in. > > For example, going to this URL if you re not logged in: > dev.mysite.com/secure.html > does a redirect to: > www.mysite.com/login.html > > So when I try to test on dev.mysite.com I'm getting redirected to > www.mysite.com > > Is it possible to capture the URL JMeter sees when doing a server side > redirect and replacing www.mysite.com with dev.mysite.com ? > > Thanks > Ophir >
