Using a proxy server with Buzz

795 Views Asked by At

Question: How can a proxy server be used with Buzz?

The commit that added support for proxy can be found here. However, it no longer seems to be available in the latest commit.

1

There are 1 best solutions below

0
aha On

Buzz 0.10 contains basic proxy support (without authentication). AbstractClient has a method called setProxy() that allows you to specify the address of the proxy server. Example:

$client = new FileGetContents();
$client->setProxy('192.168.0.1:8080');