[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Disable metalink
From: |
Carles Pina i Estany |
Subject: |
Disable metalink |
Date: |
Wed, 21 Jun 2023 10:05:46 +0200 |
Hi wget2 community,
If there is a better place to send user questions let me know please.
I'm trying to migrate from wget to wget2 and I've had some unexpected
behaviour for me.
The main question is: how to disable downloading what I understand is
via the metalinks file? (chunking) even though the server allows it?
E.g.:
$ wget2 --no-metalink
https://download.qt.io/official_releases/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz
[0] Downloading
'https://download.qt.io/official_releases/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz'
...
HTTP response 302 Found
[https://download.qt.io/official_releases/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz]
And nothing gets downloaded (I expected wget2 to follow the redirect and
download the file).
If this is a bug I'm happy to open a bug on gitlab.
I wasn't familiar with the metalink standard. I was surprised that wget
was downloading the file in chunks which makes it way slower in this
case:
$ time wget -O /dev/null -q
https://download.qt.io/official_releases/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz
real 0m7.064s
user 0m1.006s
sys 0m0.717s
$ time wget2 -O /dev/null -q
https://download.qt.io/official_releases/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz
real 0m29.694s
user 0m5.648s
sys 0m6.265s
So in this case I wanted to download the file not follow the metalink...
and I haven't been able to do it just yet.
Thank you very much,
--
Carles Pina i Estany
https://carles.pina.cat || Wiktionary translations: https://kamus.pina.cat
- Disable metalink,
Carles Pina i Estany <=