几处商榷之处
似乎应为:获取netscape网站的首页。因为curl http://www.netscape.com/不会获取netscape网站的所有网页,原文也是main page。
引用:
下载index.html文件, -O是大写的字母o。 (如果没有文件名,将会出现错误):
curl -O http://www.netscape.com/index.html
下载2个文件:
curl -O www.haxx.se/index.html -O curl.haxx.se/download.html
这一段原文是
引用:
Get a web page and store in a local file, make the local file get the name of the remote document (if no file name part is specified in the URL, this will fail): curl -O http://www.netscape.com/index.html Fetch two files and store them with their remote names: curl -O www.haxx.se/index.html -O curl.haxx.se/download.html
你的翻译不太全面
大意应该是
取得网页并保存到本地文件,使本地文件使用远端文档的文件名(如果URL中没有特别标明文件名部分,这将会失败):curl -O http://www.netscape.com/index.html
取得两个文件并以远端文件名保存:curl -O www.haxx.se/index.html -O curl.haxx.se/download.html[