Wrong torrent name when downloading with wget #255
Answered
by
KiraLT
AyaanZaveri
asked this question in
Q&A
-
Whenever I download a file, it ends up being magnet... instead of the actual file name. |
Beta Was this translation helpful? Give feedback.
Answered by
KiraLT
Jul 29, 2021
Replies: 1 comment
-
wget --content-disposition 'http://localhost:3000/stream/08ada5a7a6183aae1e09d831df6748d566095a10' The equivalent thing using curl -J -O 'http://localhost:3000/stream/08ada5a7a6183aae1e09d831df6748d566095a10' Source: unix.stackexchange.com |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KiraLT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget
does not respectContent-Disposition
header which indicates filename, so you need to add--content-disposition
option:wget --content-disposition 'http://localhost:3000/stream/08ada5a7a6183aae1e09d831df6748d566095a10'
The equivalent thing using
curl
:curl -J -O 'http://localhost:3000/stream/08ada5a7a6183aae1e09d831df6748d566095a10'
Source: unix.stackexchange.com