Subject: libquvi7: Fails to follow more than one redirect in a row
Date: Sat, 28 Jun 2014 20:17:22 +0200
Package: libquvi7
Version: 0.4.1-2.1
Severity: normal
Control: affects -1 cclive
Dear Maintainer,
Twitter puts every link behind their t.co redirector. Some people post
links to YouTube via their preferred redirector, e.g. here[1]. Hence you get two
redirects to get to YouTube.
[1] https://twitter.com/ernst_michalek/status/458239402289164288
If I copy the first link from that tweet (not its link text) onto the
command line to download it with cclive, it fails as it seems to follow
only the first redirect:
$ cclive http://t.co/oePJcxs85Z
Checking ... ....... libquvi: error: no support: http://bit.ly/1nCACef
$
This link seems to involve at least three redirects:
$ GET -SUsed http://t.co/oePJcxs85Z
GET http://t.co/oePJcxs85Z
User-Agent: lwp-request/6.03 libwww-perl/6.06
301 Moved Permanently
Cache-Control: private,max-age=300
Date: Sat, 28 Jun 2014 18:12:45 GMT
Location: http://bit.ly/1nCACef
Server: tfe
Content-Length: 0
Expires: Sat, 28 Jun 2014 18:17:45 GMT
Client-Date: Sat, 28 Jun 2014 18:12:45 GMT
Client-Peer: 199.16.156.11:80
Client-Response-Num: 1
[…]
GET http://bit.ly/1nCACef
User-Agent: lwp-request/6.03 libwww-perl/6.06
301 Moved Permanently
Cache-Control: private; max-age=90
Connection: close
Date: Sat, 28 Jun 2014 18:12:45 GMT
Location: http://youtu.be/iphuMBINgWY
Server: nginx
Content-Length: 119
Content-Type: text/html; charset=utf-8
Client-Date: Sat, 28 Jun 2014 18:12:46 GMT
Client-Peer: 69.58.188.39:80
Client-Response-Num: 1
Mime-Version: 1.0
[…]
Title: bit.ly
GET http://youtu.be/iphuMBINgWY
User-Agent: lwp-request/6.03 libwww-perl/6.06
302 Found
Connection: close
Date: Sat, 28 Jun 2014 18:12:46 GMT
Location: http://www.youtube.com/watch?v=iphuMBINgWY&feature=youtu.be
Server: gwiseguy/2.0
Content-Length: 0
Content-Type: text/html
Alternate-Protocol: 80:quic
Client-Date: Sat, 28 Jun 2014 18:12:46 GMT
Client-Peer: 173.194.116.40:80
Client-Response-Num: 1
X-XSS-Protection: 1; mode=block
GET http://www.youtube.com/watch?v=iphuMBINgWY&feature=youtu.be
User-Agent: lwp-request/6.03 libwww-perl/6.06
200 OK
Cache-Control: no-cache
Connection: close
Date: Sat, 28 Jun 2014 18:12:46 GMT
Server: gwiseguy/2.0
Content-Type: text/html; charset=utf-8
Expires: Tue, 27 Apr 1971 19:44:06 EST
Alternate-Protocol: 80:quic
Client-Date: Sat, 28 Jun 2014 18:12:46 GMT
Client-Peer: 173.194.116.46:80
Client-Response-Num: 1
[…]
Using the last URL directly works fine in cclive.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.15-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libquvi7 depends on:
ii dpkg 1.17.10
ii libc6 2.19-4
ii libcurl3-gnutls 7.37.0-1+b1
ii liblua5.2-0 5.2.3-1
ii libquvi-scripts 0.4.21-1
ii multiarch-support 2.19-4
libquvi7 recommends no packages.
libquvi7 suggests no packages.
-- no debconf information
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.