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.
Checklist
Verbose log
Description
under macos, an https url request when an http proxy is set results in the http proxy being used to tunnel https traffic even when no https proxy is configured.
under macos (specifically 10.15.6 and 10.15.5) when using youtube-dl to retrieve an https url, the http proxy is used if set.
no https proxy is configured or set, as verified via system preferences and scutil
an http proxy (squid) is set, and running on localhost:3128
when the following command is issued:
youtube-dl https://www.youtube.com/watch?v=LuN24Dd47Zw (or any other youtube video)
an https TUNNEL is issued through the http proxy running on localhost:3128
this happens for any video. I haven't tried anything except youtube so far. (but I will...)
I've dug through the youtube extractor, and this doesn't seen to be an issue there.
I'll dig through the cli parser and see if I can pinpoint why/where this is happening.
(note that I'm not certain this is a youtube-dl issue, just that it is specifically happening with youtube-dl, and not, for example, wget, curl, or various other python scripts I've tried. looking at the python errors, I suspect it may be a python urllib/request issue.)
"[debug] Proxy map: {'http': 'http://127.0.0.1:3128', 'https': 'http://127.0.0.1:3128'}" is particularly suspicious.
I don't think this should be happening.