Windows WGET Installation

Source: Internet
Author: User
Tags ssl connection

1, install wget www.2cto.com

Website: http://gnuwin32.sourceforge.net/packages/wget.htm

Download Http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe

Double-click Install

2, System environment variables, new

Gnu_home=c:\program Files\gnuwin32

3. Path add

========== Split Line ==============

;%gnu_home%\bin

========== Split Line ==============

4, download the whole station:

Download things with wget, it is very convenient, it will automatically re-connect and the breakpoint continues to pass. People are very relieved.

You often download a site or a directory for a website.

Www.2cto.com

Download a directory, such as download all content under www.example.com/directory Mydir

The command is as follows:

Wget-r-p-k-np-nc-e Robots=off http://www.example.com/mydir/

If you want to download the entire site, it is best to remove the-NP parameter.

Wget-r-p-k-nc-e Robots=off http://www.example.com/mydir/

-R recursion; For an HTTP host, wget first downloads the file specified by the URL, and then (if the file is an HTML document) recursively downloads all the files referenced by the file (the Hyper-link) (The recursive depth is specified by the parameter-L). For an FTP host, this parameter means that all files in the directory specified by the URL are downloaded, and the recursive method is similar to the HTTP host.

-c Specifies the breakpoint continuation function. In fact, Wget has a breakpoint continuation function by default, and you only need to specify this parameter when you download a portion of a file using another FTP tool and you want wget to do the work.

-NC does not download files that already exist

-NP means that it does not go back to the parent directory, does not follow the link, only downloads the contents of the specified directory and sub-directory;

The-P download page displays all the required files. For example, the page contains the picture, but the picture is not in the/yourdir directory, and in the/images directory, there is this parameter, the picture will still be downloaded normally.

-K Repair the absolute connection in the download file is relative to the connection so that it is easy to read locally.

-O Down.log record diary to Down.log

-E Robots=off Ignore robots.txt

Problem solving: If you encounter a process during use:

The unable to establish SSL connection error issue occurs with curl and wget access HTTPS connections

Can be resolved as follows

    1. Wget using the –no-check-certificate parameter

    2. Curl uses the-K or--insecure parameter



Windows WGET Installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.