문제

This question refers to curl 7.21.4 and GNU Wget 1.13.4, I don't know if the answer is version specific.

Using the file URI scheme I can get local file using curl as such

$ curl file://localhost/Users/dave/.vimrc
contents of .vimrc

However if I try the same using wget I receive an error:

$ wget file://localhost/Users/dave/.vimrc
file://localhost/Users/dave/.vimrc: Unsupported scheme `file'

Does anyone know why this is the case?

도움이 되었습니까?

해결책

Because Wget has not been written to support file:// URLs. (It's front web page clearly states "GNU Wget is a free software package for retrieving files using HTTP, HTTPS and FTP")

Allow me to point to a little curl vs wget comparison.

다른 팁

wget only supports the HTTP, HTTPS, and FTP protocols.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top