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

Connecting to proxy (407 Error) #18817

Closed
TheGr33k opened this issue Jan 11, 2019 · 4 comments
Closed

Connecting to proxy (407 Error) #18817

TheGr33k opened this issue Jan 11, 2019 · 4 comments
Labels

Comments

@TheGr33k
Copy link

@TheGr33k TheGr33k commented Jan 11, 2019

I am unable to use a proxy with youtube-dl.I get the following error

Unable to download webpage: HTTP Error 407: Proxy Authentication Required (caused by HTTPError());

My proxy works as i am able to connect to the proxy in my browser just fine.

$toLoad = "https://www.youtube.com/watch?v=AtKZKl7Bgu0";
$command = "youtube-dl --no-warnings --no-cache-dir  --proxy http://lum-customer-hl_1234b789-zone-static-country-us:22221111asz@zproxy.lum-superproxy.io:22225 --no-check-certificate --user-agent \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36\" --socket-timeout 30  \"$toLoad\" -4  --dump-json";
$yt_json = exec($command.' 2>&1');
echo $yt_json;

However if i echo the command and run it in shell, it works just fine , making me believe something is wrong with escaping with exec

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 11, 2019

No such scheme sock.

@dstftw dstftw closed this Jan 11, 2019
@dstftw dstftw added the invalid label Jan 11, 2019
@TheGr33k
Copy link
Author

@TheGr33k TheGr33k commented Jan 11, 2019

@dstftw Its a typo mistake , i actually use http

@TheGr33k
Copy link
Author

@TheGr33k TheGr33k commented Jan 11, 2019

@dstftw see my edit and kindly reopen

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 11, 2019

Read issue template and provide compete info in new issue.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.