Use wget Command To Download Files From HTTPS Domains

by on April 21, 2011 · 3 comments· LAST UPDATED January 21, 2013

in , ,

How do I download a file using using wget command line utility?

GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. The syntax is:


Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Estimated completion timeN/A

If you don't want about checking the validity of the certificate just pass the option --no-check-certificate to the wget command-line:

wget --no-check-certificate

You can pass the --no-proxy option to the wget command. This option tells wget not to use proxies, even if the appropriate `*_proxy' environment variable is defined:

wget --no-proxy

Set https proxy using httpd_proxy variable:

export https_proxy="https://USERNAME-HERE:PASSWORD-HERE@Server-Name-Here:PORT-NUMBER-HERE/"
export https_proxy=""

Or pass proxy server username and password to the server using wget command as follows:

export https_proxy=""
wget --http-user="USER" --http-password="PASSWORD"</kbd>
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 3 comments… read them below or add one }

1 Ahmed Dev August 16, 2014 at 1:13 am

Thanks That really helps


2 JZA November 13, 2014 at 3:14 am

I want to know how can I set by default the –no-check-certificate on wget for https. Is this possible?


3 samy December 11, 2014 at 8:23 pm

Not sure if you found the answer in the meantime?
You need to use: check-certificate = off (or check_certificate = off) in your .wgetrc startup file.


Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: