There is currently no way to follow HTTP redirects when fetching an URL with the http.* functions. HTTPResponse (and friends), the result type of these calls only exposes formatted bodies, but no response status (e.g. 3xx codes for redirects) or headers (Location), thus there is no way to know how to fetch the actual result if the current URL is being redirected.
There is currently no way to follow HTTP redirects when fetching an URL with the
http.*
functions. HTTPResponse (and friends), the result type of these calls only exposes formatted bodies, but no response status (e.g.3xx
codes for redirects) or headers (Location
), thus there is no way to know how to fetch the actual result if the current URL is being redirected.