Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line 下载某些文件时wget给出错误_Command Line_Wget - Fatal编程技术网

Command line 下载某些文件时wget给出错误

Command line 下载某些文件时wget给出错误,command-line,wget,Command Line,Wget,我在以编程方式下载某些文档时遇到问题 例如这个链接 https://www-950.ibm.com/events/wwe/grp/grp019.nsf/vLookupPDFs/Introduction_to_Storwize_V7000_Unified_T3/$file/Introduction_to_Storwize_V7000_Unified_T3.pdf 可以从浏览器下载,但当我试图从wget获取它时,它不起作用 我试过了 wget https://www-950.ibm.com/eve

我在以编程方式下载某些文档时遇到问题

例如这个链接

https://www-950.ibm.com/events/wwe/grp/grp019.nsf/vLookupPDFs/Introduction_to_Storwize_V7000_Unified_T3/$file/Introduction_to_Storwize_V7000_Unified_T3.pdf
可以从浏览器下载,但当我试图从wget获取它时,它不起作用

我试过了

wget https://www-950.ibm.com/events/wwe/grp/grp004.nsf/vLookupPDFs/3-Mobile%20Platform%20--%20Truty%20--%20March%208%202012/\$file/3-Mobile%20Platform%20--%20Truty%20--%20March%208%202012.pdf
它给了我这个输出

--2012-04-18 17:09:42--  
https://www-950.ibm.com/events/wwe/grp/grp004.nsf/vLookupPDFs/3-Mobile%20Platform%20--%20Truty%20--%20March%208%202012/$file/3-Mobile%20Platform%20--%20Truty%20--%20March%208%202012.pdf

Resolving www-950.ibm.com... 216.208.176.98
Connecting to www-950.ibm.com|216.208.176.98|:443... connected.
Unable to establish SSL connection.
谁能帮我解决这个问题。提前感谢。

将--no-check证书添加到原始wget命令中

另外,您需要确保您使用的是代理

在Linux上:

export http_proxy=http://myproxyserver.com:8080
在Windows上:

set http_proxy=http://myproxyserver.com:8080
我还发现,在windows上,由于这是一个https请求,为了使其工作,我还必须设置https\U代理。所以

set https_proxy=http://myproxyserver.com:8080
显然,更改代理设置以适应您的特定情况