wget 不从正版 https url vaultpress 下载

wget not downloading from authentic https url vaultpress

我正在使用 VaultPress 备份我的 WordPress 博客 https://dashboard.vaultpress.com/

单击下载备份按钮后,该站点向我发送了一个 link,我可以从那里下载。当我单击此 link 时,它开始在浏览器中下载我的备份,这很完美。但是我正在尝试使用 wgetcurl 在我的 Ubuntu 系统中下载它,但直到现在都没有成功。下面是下载 URL 的样子: https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=.

eric@eric:~# wget https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<somehashedvalue>
[5] 2229
[6] 2230
[6]   Done                    job=12345678
eric@eric:~# --2015-02-08 02:25:07--  https://dashboard.vaultpress.com/12345/restore/?step=4
Resolving dashboard.vaultpress.com (dashboard.vaultpress.com)... 192.0.96.249, 192.0.96.250
Connecting to dashboard.vaultpress.com (dashboard.vaultpress.com)|192.0.96.249|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: / [following]
--2015-02-08 02:25:09--  https://dashboard.vaultpress.com/
Reusing existing connection to dashboard.vaultpress.com:443.
HTTP request sent, awaiting response... 302 Found
Location: /account/login/ [following]
--2015-02-08 02:25:09--  https://dashboard.vaultpress.com/account/login/
Reusing existing connection to dashboard.vaultpress.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html?step=4’

    [ <=>                                                                                                   ] 7,709       --.-K/s   in 0s      

2015-02-08 02:25:09 (20.9 MB/s) - ‘index.html?step=4’ saved [7709]

PS: 文件大小将近 1 GB。

然后我用了user/pass:

eric@eric:~# wget --user <myusername> --password <mypassword> https://aboveurl

我什至用过--ask-password:

eric@eric:~# wget --user <myusername> --ask-password https://aboveurl

但在这种情况下,它不会询问密码,而是完成操作,然后在另一个 shell(我不知道确切的术语)中询问密码,如下所示:

eric@eric:~# wget --user <myusername> --ask-password https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<hashedvalue>
[1] 1979
[2] 1980
eric@eric:~# Password for user ‘<myusername>’: <mypassword-here>
<mypassword>: command not found

最后,我尝试了 curl:

eric@eric:~# curl -u <myusername>:<mypassword> https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<hashedvalue>
[5] 2010
[6] 2011
eric@eric:~#

不知道怎么回事?那些是什么 [5] 2010 [6] 2011 or [5] 2229

此解决方案也不起作用: wget with authentication

您 URL 中的 & 符号使 Linux 在后台创建新进程 运行。 PID 打印在方括号中的数字后面。

将 URL 写在双引号内,然后重试:

wget "https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<somehashedvalue>"