Push Notification issues

Hello evryone !!


I'm trying to connect to the APNS serveur in order to send a notification to my app users. I'm using CURL to establish the connection .

Here is a part of my code.


curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,true);

curl_setopt($ch,CURLOPT_CAINFO,'mycertificat.cer');

curl_setopt($ch,CURLOPT_SSLCERT,'mycertificat.pem');

curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);

curl_setopt($ch,CURLOPT_HEADER,true);

curl_setopt($ch,CURLOPT_PORT,443);



When i run this code i get "Empty reply from Server" . It's my first time to use APNS so thanx to everyone for the help.

Push Notification issues
 
 
Q