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.
Share
Looks like you can use
setInstanceFollowRedirects()to alter the default behaviour defined insetFollowRedirects()on a per connection basis.Once
setFollowRedirects()is called, all connections created afterwards will use this value as default.