An error occurred while using the wget command

Source: Internet
Author: User
Tags ftp file http authentication

With centos6.5, when I use my life today

sudo wget https://cmake.org/files/v3.6/cmake-3.6.1.tar.gz

This error occurred while downloading a cmake package

--2016-09-01 06:53:39--  https://cmake.org/files/v3.6/cmake-3.6.1.tar.gzResolving cmake.org ... 66.194.253.19Connecting to cmake.org|66.194.253.19|:443 ... Connected. Error:certificate common name "*.kitware.com" doesn ' t match requested host name "Cmake.org". To connect to cmake.org insecurely, use '--no-check-certificate '.

There is no test certificate, this should be the meaning of it. Maybe it's a certificate problem for my server.

Now look at Wget's help (wget option URL):

GNU Wget 1.12, a non-interactive network retriever. Usage:wget [OPTION] ... [URL] ... Mandatory arguments to long options is Mandatory for short options too.  Startup:-V,--version display the version of Wget and exit.  -H,--help print this help.  -B,--background go to background after startup. -E,--execute=command execute a '. Wgetrc '-style COMMAND.  Logging and input file:-O,--output-file=file log messages to file.  -A,--append-output=file append messages to FILE.  -D,--debug print lots of debugging information.  -Q,--quiet quiet (no output).  -V,--verbose be verbose (this is the default).  -NV,--no-verbose turn off verboseness, without being quiet.  -I,--input-file=file download URLs found in local or external file.  -F,--force-html treat input file as HTML. -b,--base=url resolves HTML input-file links (-i-f) relative to URL.       Download:-T,--tries=number set number of retries to number (0 unlimits).  --retry-connrefused Retry Even if connection is refused.  -O,--output-document=file write documents to FILE.  -NC,--no-clobber skip downloads that would download to existing files.       -C,--continue resume getting a partially-downloaded file.  --progress=type Select Progress Gauge TYPE.  -N,--timestamping don ' t re-retrieve files unless newer than local.       -S,--server-response print server response.  --spider don ' t download anything.       -T,--timeout=seconds set all timeout values to SECONDS.       --dns-timeout=secs Set the DNS lookup timeout to SECS.       --connect-timeout=secs Set the Connect timeout to SECS.  --read-timeout=secs set the Read timeout to SECS. -W,--wait=seconds wait SECONDS Between retrievals.       --waitretry=seconds wait 1..SECONDS between retries of a retrieval.       --random-wait wait from 0...2*wait secs between retrievals.  --no-proxy explicitly turn off proxy.       -Q,--quota=number set retrieval quota to number.       --bind-address=address bind to address (hostname or IP) on local host.       --limit-rate=rate limit download rate.       --no-dns-cache Disable caching DNS lookups.       --restrict-file-names=os restrict chars in file names to ones OS allows.  --ignore-case Ignore case when matching files/directories.  -4,--inet4-only connect only to IPV4 addresses.       -6,--inet6-only connect only to IPV6 addresses. --prefer-family=family Connect first to addresses of specified family, one of IPv6, IPv       4, or none.     --user=user set both FTP and HTTP user to user.  --password=pass set both FTP and HTTP password to PASS.       --ask-password Prompt for passwords.       --no-iri turn off IRI support.       --local-encoding=enc use ENC as the local encoding for IRIs. --remote-encoding=enc use ENC as the default remote encoding.  Directories:-nd,--no-directories don ' t create directories.  -X,--force-directories force creation of directories.       -NH,--no-host-directories don ' t create host directories.  --protocol-directories use protocol name in directories. -p,--directory-prefix=prefix save files to prefix/...--cut-dirs=number ignore number remote directory C Omponents.       HTTP options:--http-user=user set HTTP user to user.       --http-password=pass set HTTP password to PASS.       --no-cache Disallow server-cached data.                              --default-page=name Change the default page NAME (normally This is ' index.html '.       -E,--adjust-extension save HTML/CSS documents with proper extensions.       --ignore-length Ignore ' content-length ' header field.       --header=string Insert STRING among the headers.       --max-redirect maximum redirections allowed per page.       --proxy-user=user set user as proxy username.       --proxy-password=pass set PASS as proxy password.       --referer=url include ' Referer:url ' header in HTTP request.  --save-headers Save the HTTP headers to file.       -U,--user-agent=agent identify as agent instead of wget/version.       --no-http-keep-alive Disable HTTP keep-alive (persistent connections).       --no-cookies don ' t use cookies.       --load-cookies=file load cookie from FILE before session.       --save-cookies=file Save Cookie to FILE after session.       --keep-session-cookies Load and save session (Non-permanent) cookies.     --post-data=string Use the POST method;       Send STRING as the data. --post-file=file use the Post method;       Send contents of FILE. --content-disposition Honor the Content-disposition header when choosing local file names       (experimental).  --auth-no-challenge Send Basic HTTP authentication information without first waiting for The server ' s challenge.                                HTTPS (SSL/TLS) options:--SECURE-PROTOCOL=PR Choose Secure Protocol, one of auto, SSLv2,       SSLv3, and TLSv1. --no-check-certificate don ' t validate the server ' s certificate.       [Do not verify the server's certificate]--certificate=file client certificate FILE.       --certificate-type=type client certificate type, PEM or DER.       --private-key=file private key FILE.       --private-key-type=type private key type, PEM or DER.       --ca-certificate=file FILE with the bundle of Ca ' s. --ca-directory=dir      directory where hash list of CA ' s is stored.       --random-file=file file with random data for seeding the SSL PRNG. --egd-file=file file naming the EGD socket with random data.       FTP options:--ftp-user=user set FTP user to user.       --ftp-password=pass set FTP password to PASS.       --no-remove-listing don ' t remove '. Listing ' files.       --no-glob Turn off FTP file name globbing.       --NO-PASSIVE-FTP Disable the "passive" transfer mode. --retr-symlinks when recursing, get linked-to files (not dir).  Recursive Download:-R,--recursive specify Recursive download.       -L,--level=number maximum recursion depth (INF or 0 for infinite).  --delete-after Delete files locally after downloading them.  -K,--convert-links make links in downloaded HTML or CSS point to local files. -K,--backup-converted before converting file X, back up as X.orig.  -M,--mirror shortcut for-n-r-l inf--no-remove-listing.       -P,--page-requisites get all images, etc. needed to display HTML page. --strict-comments turn on Strict (SGML) handling of HTML comments.  Recursive accept/reject:-A,--accept=list comma-separated LIST of accepted extensions.  -R,--reject=list comma-separated LIST of rejected extensions.       -D,--domains=list comma-separated LIST of accepted domains.       --exclude-domains=list comma-separated LIST of rejected domains.       --follow-ftp follow FTP links from HTML documents.       --follow-tags=list comma-separated LIST of followed HTML tags.  --ignore-tags=list comma-separated LIST of ignored HTML tags.  -H,--span-hosts go to foreign the hosts when recursive.  -L,--relative follow relative links only.  -I,--include-directories=list LIST of allowed directories. -X,--exclude-Directories=list LIST of excluded directories. -NP,--no-parent don ' t ascend to the parent directory.

Then I can use it.

sudo wget--no-check-certificate https://cmake.org/files/v3.6/cmake-3.6.1.tar.gz

And then it's OK ... It's a simple operation.

An error occurred while using the wget command

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.