【发布时间】:2016-01-26 16:10:43
【问题描述】:
我在工作环境中使用 git bash 作为命令行界面。
是否有适用于 Windows 8.1 的wget 命令?
【问题讨论】:
标签: command-line-interface windows-8.1 wget git-bash
我在工作环境中使用 git bash 作为命令行界面。
是否有适用于 Windows 8.1 的wget 命令?
【问题讨论】:
标签: command-line-interface windows-8.1 wget git-bash
您可以使用 curl 代替 wget。
curl http://www.google.com/
【讨论】:
使用 CygWin 并下载 wGet 的包
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fwget%2Fwget-1.16.3-1&grep=wget
【讨论】:
你可以直接下载wget for windows
1) 从http://gnuwin32.sourceforge.net/packages/wget.htm 或https://eternallybored.org/misc/wget/ 下载适用于 Windows 的 wget
2) 从 cygwin.com 下载安装 cygwin 并安装 wget 包
3) 从 curl.haxx.se
【讨论】:
Windows 8.1 PowerShell 具有 wget 和 curl 命令。
两者的表现相同,就好像它们是彼此的同义词。
示例 - 检索 http://www.sdsolarblog.com/montage/show.html
PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html
或
PS C:/users/Admin> wget http://www.sdsolarblog.com/montage/show.html
这是它在实践中的样子:
-outfile 选项,如下所示:PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html -outfile show.html
【讨论】: