Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--prefer-insecure (--prefer-unsecure) doesn't work anymore since some time #4510

Open
kokoko3k opened this issue Dec 18, 2014 · 3 comments
Open

Comments

@kokoko3k
Copy link

@kokoko3k kokoko3k commented Dec 18, 2014

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

@kokoko3k
Copy link
Author

@kokoko3k kokoko3k commented Dec 18, 2014

Rev 6253 works, 6254 does not
Seems the commit that broke the functionality is this:
4e62ebe

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 18, 2014

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 intact

We could use the old method if --prefer-unsecure is given, but I don't really like it.

If that's for playing the url with mplayer, it supports https in the svn head

@kokoko3k
Copy link
Author

@kokoko3k kokoko3k commented Dec 18, 2014

Yes it does redirect me too.
Still, the http links are available and working with youtube-dl < 2014-12-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.