Or you can use XML output in conjunction with Follow Redirect.
This will show the original redirect response and the subsequent 200
response as parts of a parent sample.
CSV files only show the parent sample.

On 20 March 2015 at 22:15, Sergio Boso <[email protected]> wrote:
> Hi,
>
> you also need to apply some regex to the response header, in order to
> extract the URL to a suitable variable, and use it in the following sampler.
> Regards
>
> Sergio Boso
> Il 20/Mar/2015 21:08 "JTM" <[email protected]> ha scritto:
>
>> So that does let the 301 redirect get recorded in the result CSV file, but
>> then I lose the following row for the response with the redirected
>> Location.
>>
>> So for example, when /articles  gets redirected to /blog I'd like both
>> responses captured. Something like this would be my desired results CSV . .
>> .
>>
>> URL Testing,301,OK,,text,true,,53031,1,1,
>> http://www.xyz.com/articles,,82,1,0
>> URL Testing,200,OK,,text,true,,308058,1,1,http://www.xyz.com/blog,,179,1,0
>>
>> When I shut off Follow Redirects, I get only the 301 displayed, but want
>> both the 301 and the following response(s).
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://jmeter.512774.n5.nabble.com/how-to-capture-301-redirect-responses-in-results-CSV-file-tp5721974p5721976.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to