Direct link does not work with wget on ubuntu

Asked

Viewed 497 times

0

I’m trying to download straight from this link https://punchsub.zlx.com.br/download-vip/6262326895623150684821353451533450406/shingeki-no-kyojin-2-7-mp4, even using the command wget --user=usuario --password=senha https://punchsub.zlx.com.br/download-vip/6262326895623150684821353451533450406/shingeki-no-kyojin-2-7-mp4 it simply keeps connecting infinity, but when bass by browser works perfectly.

  • tried with Curl? Curl -u user:password [url]

  • \When I use this way it returns <html>&#xA;<head><title>302 Found</title></head>&#xA;<body bgcolor="white">&#xA;<center><h1>302 Found</h1></center>&#xA;<hr><center>nginx/1.11.10</center>&#xA;</body>&#xA;</html>&#xA;

  • On Ubuntu 16.04, wget worked, version 1.17.1. Curl 7.47.7 worked the way you described it. It means that the command stops when you receive 302. Using the Curl gets curl -L -u usuario:senha url. Using the wget, it stays wget --max-redirect 100 --user usuario --password senha url

  • It seems that your wget has some problem to treat the 1st redirect. You are redirected to aliancaproject.com.br and I’m redirected to vip-validation2.punchsub.net

  • @lemoce and what I can do when to that ??

  • good question. I could do a````sudo apt-get build-Dep wget`````and recompile wget in the newer version. I would try that. But it might be something from your DNS. You can try using google’s DNS (8.8.4.4). Note that you have several answers to your problem.

  • Returns E: You must put some 'source' URIs in your sources.list&#xA;

  • https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list

Show 4 more comments

1 answer

2

It looks like your wget is set by default with --max-redirect 0. This implies that you will not redirect after a 301 and 302.

For this you can use the options -L of the Curl and --max-redirect of wget.

Using the Curl

curl -L -u usuario:senha [url]

Using the wget

wget --max-redirect 100 --user usuario --password senha [url]

*** Edited

But that doesn’t answer the question.

  • Using the wget, is so infinitely Resolving punchsub.zlx.com.br (punchsub.zlx.com.br)... 104.24.27.118, 104.24.28.118&#xA;Connecting to punchsub.zlx.com.br (punchsub.zlx.com.br)|104.24.27.118|:443... connected.&#xA;HTTP request sent, awaiting response... 302 Moved Temporarily&#xA;Location: http://www.aliancaproject.com.br/ [following]&#xA;--2017-05-14 09:06:43-- http://www.aliancaproject.com.br/&#xA;Resolving www.aliancaproject.com.br (www.aliancaproject.com.br)... 2607:5300:60:969a::, 163.172.64.158&#xA;Connecting to www.aliancaproject.com.br (www.aliancaproject.com.br)|2607:5300:60:969a::|:80...

  • on my machine, wget works. Tried Curl?

  • I tried, it returns every code from a page.

  • Connecting to punchsub.zlx.com.br (punchsub.zlx.com.br)|104.24.27.118|:443... connected.&#xA;HTTP request sent, awaiting response... 302 Found&#xA;Location: http://vip-validation2.punchsub.net/vip/vipDlRedir_1.php?downNum=6262326&slug=shingeki-no-kyojin-2-7-mp4&t=e [following]163.172.214.124|:80... connected.&#xA;HTTP request sent, awaiting response... 302 Moved Temporarily&#xA;Location: http://st1.punchsub.net/mp4/PUNCH_Shingeki_no_Kyojin_2_-_07_MQ.mp4 [following]&#xA;HTTP request sent, awaiting response... 200 OK&#xA;Saving to: ‘shingeki-no-kyojin-2-7-mp4.3

  • wget also worked here! great answer.+ 1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.