I have a problem with set proxy in guzzle that a blank page was shown while with curl everything works perfect. The code that I used in guzzle and curl came below. What is w
for a proxy, if you have the username and password, you can use:
$client = new GuzzleHttp\Client(); $res = $client->request("POST", "https://endpoint.com", [ "proxy" => "http://username:password@192.168.16.1:10", ]);
this worked with guzzle in php.