I want to know the difference between Follow Redirects and Redirect Automatically while recording with Jmeter. Also what effect will both these have when used with Retrieve all Embedded Resources from HTML
Redirect automatically , will not consider redirect as a separate request where as Follow redirects will consider each redirection as a separate request. This difference can be visualized in the Listener (View Results Tree).
To follow redirect with Curl, use the -L or --location command-line option. This flag tells Curl to resend the request to the new address. When you send a POST request, and the server responds with one of the codes 301, 302, or 303, Curl will make the subsequent request using the GET method.
To make redirects after an axios post request with Express and React, we set window. location to the new URL value after the response from the axios request to the Express back end is available.
Normally, fetch transparently follows HTTP-redirects, like 301, 302 etc.
Redirect automatically
, will not consider redirect as a separate request
where as Follow redirects
will consider each redirection as a separate request.
This difference can be visualized in the Listener (View Results Tree).
If Retrieve all Embedded Resources from HTML
is checked, it will give you Page Load Time
, since apart from response time it will keep on calculating the time taken till all the supporting files of html page have been downloaded to Local (CSS, Images, Javascript files.. etc.)
Also if any values needs to be captured from redirect request you need to set configuration a follow redirect otherwise will not be able to capture those data using extractors (set cookie values for example)
Hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With