I'm using a PHP script that uses stream_context
. I need to test it with a proxy. How can I simulate a proxy on my Mac for tests on my localhost
(I'm using MAMP). I downloaded SquidMan
but I don't know if this is a good solution.
In my script I have to write something like this :
stream_context_set_option($ctx, 'http', 'proxy', 'tcp://local-proxy:8080');
// how to create a local proxy ?
Thanks