Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--prefer-insecure (--prefer-unsecure) doesn't work anymore since some time #4510
Comments
|
Rev 6253 works, 6254 does not |
|
I don't know if it's just for me, but trying to access any youtube url in a browser/curl redirects me to the https url: $ curl 'www.youtube.com/watch?v=P77q90n19dI' -v
* Adding handle: conn: 0x7fc811803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc811803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to www.youtube.com port 80 (#0)
* Trying 173.194.45.166...
* Connected to www.youtube.com (173.194.45.166) port 80 (#0)
> GET /watch?v=P77q90n19dI HTTP/1.1
> User-Agent: curl/7.30.0
> Host: www.youtube.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 18 Dec 2014 13:46:47 GMT
* Server gwiseguy/2.0 is not blacklisted
< Server: gwiseguy/2.0
< X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube
< P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=en for more info."
< Location: https://www.youtube.com/watch?v=P77q90n19dI
< Expires: Tue, 27 Apr 1971 19:44:06 EST
< Content-Type: text/html; charset=utf-8
< X-Content-Type-Options: nosniff
< Content-Length: 0
< Cache-Control: no-cache
< X-Frame-Options: SAMEORIGIN
< Alternate-Protocol: 80:quic,p=0.02
< Set-Cookie: VISITOR_INFO1_LIVE=TJKZQ4IdPB8; expires=Wed, 19-Aug-2015 01:39:47 GMT; path=/; domain=.youtube.com
< Set-Cookie: YSC=BgaG1DP8RZI; path=/; domain=.youtube.com; HttpOnly
<
* Connection #0 to host www.youtube.com left intactWe could use the old method if If that's for playing the url with mplayer, it supports https in the svn head |
|
Yes it does redirect me too. |
...It is not youtube, it is youtube-dl
Under Archlinux, if i install the version dated 2014.12.01 (or any of the followings, tried until 2014-12-06)
Youtube-dl returns always https links for (eg) the videoid P77q90n19dI
Rolling back to 2014.11.24 makes youtube-dl always return http urls.