Currently, open_file relies on Kernel.open and OpenURI.open_uri, which doesn't provide sufficient control in the face of redirects, or 200 requests with a Location header. It should be re-implemented ...