php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

How can i send get request with proxy?

Open leeanhtuan opened this issue 8 years ago • 2 comments

Hi, I want to send get request with a proxy, how can i do it?

leeanhtuan avatar Apr 26 '17 17:04 leeanhtuan

Just add option:

$client->getEngine()->addOption("--proxy=123.123.123.123");

yipwt79 avatar May 04 '17 10:05 yipwt79

And if you need to specify a login and password? and the port? how to write?

StasToken avatar May 06 '18 07:05 StasToken