Direct Link does not work with wget on ubunto [closed]

Closed. this question is out of scope and is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 3 years ago .

improve this question

I'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.

Author: Lucas Caresia, 2017-05-13

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.

 2
Author: lemoce, 2017-05-14 13:32:38