`我有一个文件存储在 Strato hidrive 上,我可以使用 webdav 和身份验证直接访问它,如下所示:
https://username:password@webdav.hidrive.strato.com/path/to/my/file.zip
当我将其粘贴到地址栏中时,我可以直接下载该文件。但我正在编写一个小文件 getter 脚本,它接受文件名作为 URL 中的参数,它将生成下载:
http://example.com/getfile.php?filename=file.zip
这应该会弹出一个下载对话框,就像直接链接一样
如果可能,我想使用httpful php 库下载文件(不是 cURL)