wget windows 10 code example

Example 1: install wget

apt-get install wget

Example 2: how to wget on windows

#you can perform similar to wget with this command in powershell, accept all certs in test mode
 $client = new-object System.Net.WebClient
 [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ;
 $client.DownloadString("https://url-url-here")

Example 3: wget

The simplest way to use wget is to provide it with the location of a file to download over HTTP. For example, to download the file http://website.com/files/file.zip, this command:


$ wget http://website.com/files/file.zip


...would download the file into the working directory.

There are many options that allow you to use wget in different ways, for different purposes.