wget 适用于 .de 域,但不适用于 .com

wget 适用于 .de 域,但不适用于 .com

当我在浏览器中打开此网站时http://www.montratec.com/

它会自动更改为https://www.montratec.de/de/

我想从网站下载文件http://www.montratec.com/使用 wget 和原始链接。当我尝试这个时:

wget -A pdf -m -p -E -k -K -nd www.montratec.com

它不会下载任何东西并且很快结束

--2021-07-10 10:36:55--  http://www.montratec.com/
Resolving www.montratec.com (www.montratec.com)... 134.119.247.151
Connecting to www.montratec.com (www.montratec.com)|134.119.247.151|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.montratec.de/ [following]
--2021-07-10 10:36:55--  https://www.montratec.de/
Resolving www.montratec.de (www.montratec.de)... 134.119.247.151
Connecting to www.montratec.de (www.montratec.de)|134.119.247.151|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.montratec.de/de/ [following]
--2021-07-10 10:36:56--  https://www.montratec.de/de/
Reusing existing connection to www.montratec.de:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp.html’

index.html.tmp.html                                [ <=>                                                                                              ] 104.09K  --.-KB/s    in 0.09s   

Last-modified header missing -- time-stamps turned off.
2021-07-10 10:36:56 (1.15 MB/s) - ‘index.html.tmp.html’ saved [106585]

Removing index.html.tmp.html since it should be rejected.

FINISHED --2021-07-10 10:36:56--
Total wall clock time: 1.0s
Downloaded: 1 files, 104K in 0.09s (1.15 MB/s)
Converted links in 0 files in 0 seconds. 

但是,当我使用 .de 扩展名运行相同的命令时,它似乎可以工作并下载内容。

wget -A pdf -m -p -E -k -K -nd www.montratec.de

是否可以修改命令以自动检查所有域?我想继续使用原来的 .com 链接。

相关内容