Change the filename of a downloaded file hosted on another website
Is it possible to create a download link for a file on another site开发者_如何学Go and change the file name? Can it be done without proxying it through my server? I'd like to achieve it without any additional bandwidth cost if possible.
EDIT: Just an idea but can it be achieved with a flash downloader of sorts?
You could fake it using a header redirect header("Location:http://.....");
but the download process will probably show the real URL nevertheless - will depend on the client.
There is the Content-Location
header but according to this blog post, it is used to specify an alternative location for the same content about to be received here, which makes it useless as a redirection tool.
The only other way I know is indeed through proxying.
精彩评论