Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of wget command line for windows 8.1

I'm using git bash as my command line interface in my working environment.

Is there a wget command available for windows 8.1?

like image 923
Jed Avatar asked Oct 27 '15 09:10

Jed


2 Answers

You can use curl instead of wget.

curl http://www.google.com/
like image 145
Aaron Avatar answered Oct 12 '22 01:10

Aaron


Windows 8.1 PowerShell has both the wget and the curl commands.

The both perform identically as if they are synonyms for each other.


Example - to retrieve http://www.sdsolarblog.com/montage/show.html

PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html

or

PS C:/users/Admin> wget http://www.sdsolarblog.com/montage/show.html

Here is what it looks like in practice:

enter image description here


To download the entire raw file you want to add the -outfile option like so:

PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html -outfile show.html
like image 39
SDsolar Avatar answered Oct 12 '22 01:10

SDsolar