Direct Link does not work with wget on ubunto [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 3 years ago .
improve this questionI'm trying to download straight from this link https://punchsub.zlx.com.br/download-vip/6262326895623150684821353451533450406/shingeki-no-kyojin-2-7-mp4
, but even using the command wget --user=usuario --password=senha https://punchsub.zlx.com.br/download-vip/6262326895623150684821353451533450406/shingeki-no-kyojin-2-7-mp4
it just gets connecting Infinity, but when downloaded by the browser it works perfectly.
1 answers
It looks like your wget is set by default to --max-redirect 0
. This implies that it will not redirect after a 301 and 302.
For this you can use the options -L
of curl and --max-redirect
of wget.
Using curl
curl -L -u usuario:senha [url]
Using wget
wget --max-redirect 100 --user usuario --password senha [url]
* * * Edited
But, that doesn't answer the question.