Auto-follow master candidate "meta refresh" responses
Closed this issue · 1 comments
In the default configuration, web requests to a grid master candidate result in a standard HTML response that redirects to the current grid master using a meta refresh tag like this:
<META HTTP-EQUIV="REFRESH" CONTENT = "0; URL=https://xxx.xxx.xxx.xxx"/>
For web browsers, this is fine because they understand the tag and will automatically go to the redirected page. But things like Invoke-RestMethod
won't. So if your environment is in a state that is currently failed over to a grid master candidate. Anything configured to talk to the grid master via this module will fail.
It would be nice if the module was able to recognize and parse the meta refresh tag and re-send the request to the current grid master.
It would be nicer if Infoblox changed how they do redirects to using something like an HTTP 301 response.