-
-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting for "follow / don't follow redirects" on a per request basis. #200
Comments
Hey @jkblume Glad that you like Bruno!
Currently it's not supported. We will support it soon. By default all requests follow up to 5 redirects.
Currently it's not supported. But I'd love to understand the requirement more and see if we can support it. I am thinking something like this which can be written in the pre request script section req.setMaxRedirects(0); Do you think an api like this would solve your use case? |
Yeah, this would be totally fine! Some insights to the use case: Thanks for the fast response 👍 |
Hey @jkblume This is now available in Here is how you can disable max redirects at the request level. |
I also wrote some tests on our testbench to verify this. |
Thanks, I will try this out the next days! |
Hi, sorry for commenting on a closed issue, but this solution is not enough for me. I need to make some sequential requests to get a token, and one of these requests requires not to follow redirects and extract some information from If I use I cloned the repo, started to play with your code, and created a new preference toggle called 'Follow Redirects' which defaults to true. I have added This has enabled me to successfully grab the headers from a 302 response, when I run the requests manually, one after another. I just need to find out how to apply this when I run a collection, because it's failing right now. |
I think we could also add this to the collection settings so there is no need to dig in the documentation |
图形界面设置是否重定向或者重定向次数,比手动添加 |
I hear @AndreiaSofia . In the flow, the last step is a page with the cookie set on it, and then a redirect. There should be an option not to follow redirect and that the request will not error because of that |
First of all. Thank you for providing this great tool. I'm currently looking at alternatives and really have the feeling that a lot is being done right here.
To my question: Is it possible to set the follow redirects behaviour in general or on a per request basis? We actually need this because we want to extract a value from a response header that is only available without the redirect.
The text was updated successfully, but these errors were encountered: