我试图使用wget二进制窗口,以便下载整个网站到一个USB驱动器。我试图运行以下wget命令,但失败了。我也不知道原因。我不知道如何读取以下错误消息。
与http:
E:\gardening> wget --mirror --convert-links --html-extension --no-timestamping --no-clobber -erobots=off --page-requisites --user-agent=Mozilla http://www.eattheweeds.com/
--2022-07-12 17:48:33-- http://www.eattheweeds.com/
Resolving www.eattheweeds.com... 45.60.22.231
Connecting to www.eattheweeds.com|45.60.22.231|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.eattheweeds.com/ [following]
--2022-07-12 17:48:33-- https://www.eattheweeds.com/
Connecting to www.eattheweeds.com|45.60.22.231|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.
使用https:
E:\gardening> wget --mirror --convert-links --html-extension --no-timestamping --no-clobber -erobots=off --page-requisites --user-agent=Mozilla https://www.eattheweeds.com/
--2022-07-12 17:45:38-- https://www.eattheweeds.com/
Resolving www.eattheweeds.com... 45.60.22.231
Connecting to www.eattheweeds.com|45.60.22.231|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.
我从这个网站上得到了我的钱。
我的wget版本和这有什么关系吗?
GNU Wget 1.11.4
Copyright (C) 2008 Free Software Foundation, Inc
编辑:
我下载了wget版本的GNU Wget 1.21.3 built on mingw32
,它成功了!
发布于 2022-07-16 12:02:35
问题是您的wget
版本不支持新版本的TLS。该网站需要TLS 1.1或1.2版本。当你发现你需要新版本的wget
当您下次使用Windows时,最好使用Power,后者已经合并了wget
的版本
https://stackoverflow.com/questions/72959806
复制相似问题