开发者

Change the filename of a downloaded file hosted on another website

开发者 https://www.devze.com 2023-01-19 21:01 出处:网络
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 a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号