wget getting HTTPS resources

Source: Internet
Author: User

Use wget to get the HTTPS resource, the default command is to use the certificate, and if the certificate has not been installed, you can choose to ignore it.

For example, without a github.com certificate, execute the following command

Mkdir-p modelcd modelwget  https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/model/vgg19.paramscd. Mkdir-p INPUTCD Inputwget Https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/input/IMG_4343.jpgwget  HTTPS://GITHUB.COM/DMLC/WEB-DATA/RAW/MASTER/MXNET/NEURAL-STYLE/INPUT/STARRY_NIGHT.JPGCD. Mkdir-p output

Will error,

Error:cannot Verify github.com ' s certificate, issued by '/c=us/o=digicert Inc/ou=www.digicert.com/cn=digicert SHA2 Extended Validation Server CA ':  Unable to locally verify the issuer ' s authority. To connect to github.com insecurely, use '--no-check-certificate '.

At this point, add the--no-check-certificate option, ignoring the certificate check, as follows

#!/bin/bashmkdir-p MODELCD modelwget--no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/ Neural-style/model/vgg19.paramscd. Mkdir-p Inputcd inputwget--no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/ Input/img_4343.jpgwget--no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/ INPUT/STARRY_NIGHT.JPGCD. Mkdir-p output

  

wget getting HTTPS resources

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.