Skip to content

Wrong torrent name when downloading with wget #255

Answered by KiraLT
AyaanZaveri asked this question in Q&A
Discussion options

You must be logged in to vote

wget does not respect Content-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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KiraLT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #195 on October 03, 2021 13:48.