wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | --spider is completely dysfunctional (#660)


From: Artem S. Tashkinov (@birdie-gitlab)
Subject: Re: wget2 | --spider is completely dysfunctional (#660)
Date: Tue, 30 Apr 2024 11:26:06 +0000



Artem S_ Tashkinov commented: 
https://gitlab.com/gnuwget/wget2/-/issues/660#note_1887181387


@darnir 

You're right it doesn't print headers but here's something it does:
```
wget --spider 
'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
Spider mode enabled. Check if remote file exists.
--2024-04-30 11:25:33--  
https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 52.72.0.70, 
52.5.195.104, 44.215.57.190
Connecting to download.mozilla.org (download.mozilla.org)|52.72.0.70|:443... 
connected.
HTTP request sent, awaiting response... 302 Found
Location: 
https://download-installer.cdn.mozilla.net/pub/firefox/releases/125.0.3/linux-x86_64/en-US/firefox-125.0.3.tar.bz2
 [following]
Spider mode enabled. Check if remote file exists.
--2024-04-30 11:25:34--  
https://download-installer.cdn.mozilla.net/pub/firefox/releases/125.0.3/linux-x86_64/en-US/firefox-125.0.3.tar.bz2
Resolving download-installer.cdn.mozilla.net 
(download-installer.cdn.mozilla.net)... 34.117.35.28
Connecting to download-installer.cdn.mozilla.net 
(download-installer.cdn.mozilla.net)|34.117.35.28|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 86003134 (82M) [application/x-tar]
Remote file exists.
```

Hopefully wget2 could do the same, i.e. check for redirects and show the final 
document size/mimetype if supported by the server.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/660#note_1887181387
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]