【发布时间】:2012-05-13 12:49:45
【问题描述】:
这个问题是指 curl 7.21.4 和 GNU Wget 1.13.4,我不知道答案是否特定于版本。
使用file URI scheme 我可以使用curl 获取本地文件
$ curl file://localhost/Users/dave/.vimrc
contents of .vimrc
但是,如果我使用 wget 尝试相同的操作,我会收到错误:
$ wget file://localhost/Users/dave/.vimrc
file://localhost/Users/dave/.vimrc: Unsupported scheme `file'
有人知道为什么会这样吗?
【问题讨论】: