By default, on server redirects, use the original URL to get the local file name. ok naddy@ additional testing by kevlo@, thanks.