Why is the the setFollowRedirects method static? I am in a situation where I would like to follow redirects or not on a per-connection basis, and while its not hard to change the global flag before each connection, I'm curious why it was implemented that way.
Looks like you can use setInstanceFollowRedirects()
to alter the default behaviour defined in setFollowRedirects()
on a per connection basis.
Once setFollowRedirects()
is called, all connections created afterwards will use this value as default.
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