从不以.extension结尾的url下载文件 [英] Download file from url that doesn't end with .extension

查看:196
本文介绍了从不以.extension结尾的url下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到有关如何以编程方式下载文件的示例,但是它们都使用直接链接,以.txt .mp3 .jpg结尾。但是,要下载的文件的链接不是直接链接:它不以.extension结尾。如何在这种情况下下载文件?

I've seen examples on how to download files programmatically, but they all use direct links, ending with .txt .mp3 .jpg, whatever. However, the link to the file I want to download isn't a direct link: it doesn't end with .extension. How can you download the file in this case?

推荐答案

非常愚蠢的答案:您可以将其作为所有其他文件下载。以与扩展名的网址相同的方式下载它。

Very stupid answer: You can just download it as all other files. Download it the same way as you do with urls with extensions.

这篇关于从不以.extension结尾的url下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆