Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use "Follow Redirects" & "Redirect Automatically" while recording with jmeter.

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

like image 286
Paras Avatar asked May 12 '14 06:05

Paras


People also ask

What is the difference between follow redirects and redirect automatically?

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).

How do you follow redirects?

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.

Can Axios handle redirect?

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.

Does fetch follow redirects?

Normally, fetch transparently follows HTTP-redirects, like 301, 302 etc.


1 Answers

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.

like image 190
Zubair M Hamdani Avatar answered Sep 25 '22 16:09

Zubair M Hamdani