gpt4 book ai didi

linux - wget 不从真实的 https url vaultpress 下载

转载 作者:太空宇宙 更新时间:2023-11-04 09:34:18 25 4
gpt4 key购买 nike

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

单击下载备份按钮后,该站点向我发送了一个链接,我可以从中下载。当我点击这个链接时,它开始在浏览器中下载我的备份,这很完美。但是我正在尝试使用 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。

然后我使用用户/密码:

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>"

关于linux - wget 不从真实的 https url vaultpress 下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28391718/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com