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) with username/password #18819

Closed
TheGr33k opened this issue Jan 11, 2019 · 1 comment
Closed

Connecting to proxy (407 Error) with username/password #18819

TheGr33k opened this issue Jan 11, 2019 · 1 comment
Labels

Comments

@TheGr33k
Copy link

@TheGr33k TheGr33k commented Jan 11, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.10. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2019.01.10

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • [] Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


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());

1.My proxy works as i am able to connect to the proxy in my browser just fine.
2.I am able to copy command when display through PHP and run it in shell and get the correct output leading me to believe that there is something wrong with my code.
3.The only characters in username/password are in range [a-zA-Z0-9-_]
4. Verbose show the correct proxy map in shell

$toLoad = "https://www.youtube.com/watch?v=AtKZKl7Bgu0";
$command = "youtube-dl  --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\"  --dump-json";
$yt_json = exec($command.' 2>&1');
echo $yt_json;
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 11, 2019

Post the full verbose log.

@dstftw dstftw closed this Jan 11, 2019
@dstftw dstftw added the incomplete label Jan 11, 2019
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.