I have to confirm that my PHP code for sending push notification is working with a proxy. I installed Charles and I'm able to watch all my web traffic through a proxy (127.0.0.1:8888).
Now I would like to see if my script is correctly working for push notifications. I have :
stream_context_set_option($ctx, 'http', 'proxy', 'tcp://127.0.0.1:8888');
$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err,$errstr, 60, STREAM_CLIENT_CONNECT, $ctx);
I'm getting my push notification but I can't see what is happening in Charles. So my script is not using proxy ...
Do you know why ?