symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.93k stars 218 forks source link

Use proxy with auth ? #404

Open funnyzano opened 3 years ago

funnyzano commented 3 years ago

hello, Is it possible to use a proxy with auth please? This works: $client = Client::createChromeClient('/usr/local/bin/chromedriver', ['--proxy-server=socks5://IP:PORT']); This not works: $client = Client::createChromeClient('/usr/local/bin/chromedriver', ['--proxy-server=socks5://USERNAME:PASS@IP:PORT']);

Any help would be really appreciate Thank you

ait1ispring commented 3 years ago

Same issue here. Please help. Thank you!!!

ennisthemenace commented 3 years ago

Yup same issue here :)

Mepcuk commented 2 years ago

Hello, Yes same issue, works fine with no login proxy and did not works with authenticated proxy

$result = $this->browser->getCrawler()->html(); result -<html><head></head><body></body></html>

sunupf commented 2 years ago

Happening to me. The screenshot only shows an empty page after the timeout is reached.

any good news/idea?

bscholl-parcelytics commented 1 year ago

Same issue here. Is there a solution to this?

wrabit commented 1 year ago

Read https://github.com/php-webdriver/php-webdriver/wiki/HowTo-Work-with-proxy#proxy-with-authentication

cvsouth commented 1 year ago

The work around recommended there is not great. For now I will use IP whitelist on the proxy instead of authentication.

fnagel commented 3 months ago

Some related issues:

https://github.com/php-webdriver/php-webdriver/issues/954 https://github.com/php-webdriver/php-webdriver/pull/966 https://github.com/php-webdriver/php-webdriver/issues/885