Override "automatically follow redirects" for single requests

Hi all,

In the settings I´ve turned “automatically follow redirects” off, since this is what I need in 99 % of the cases.
Now I have single requests, where I want to automatically follow the redirect, is there a solution to that, maybe something in the pre-request script?

Many thanks,
Christian

Did you find a way Christian?

No, Unfortunately not.

Hey @chrissbaumann :wave:

Just wanted to confirm the question here as I wasn’t quite understanding it :smiley:

We have the "Automatically follow redirects” option in the general settings but also in the request settings tab.

image

Are those what you were previously using?

1 Like

Hey Danny!

Didn’t know about the settings on the request itself.
Those can be used to override the general settings for that request?

1 Like

Is it possible to do this in a pre-request script? I need to follow redirects for all but 1 call, so I want to have follow redirects turned on in settings but override it for 1 call in the pre-request script.

Hey @penguin-sama :wave:

It’s not currently possible to set that programmatically in the script sandbox for an individual request.

Is this a feature that is on the roadmap? It would be great to have the ability to override the general setting.