目录
背景
Linux命令行下载文件时,经常遇到https证书认证的网站,需要忽略证书认证,否则报错无法下载文件,特此记录。
实例
wget
wget https://192.168.100.58/uploads/835538633.jpeg --no-check-certificate
重命名
wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
断点续传
wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
伪装浏览器下载
wget --user-agent="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, l