Skip to content
Advertisement

Tag: apple-push-notifications

PHP cURL error “security library failure.”

I’m using the following code to send an apns notification for iOS. It was working fine before but out of no where I started getting this response from cURL “security library failure.” with code 0. This issue only seems to be happening in my development environment, no matter what data is passed in. $url = “https://api.development.push.apple.com/3/device/$device_token”; $sample_alert = $headers =

PHP Curl – Received HTTP/0.9 when not allowed

I stumbled over a weird behavior when I try to send a post HTTP/2.0 request to apples push service: The exception is thrown with the Message: Curl failed: Received HTTP/0.9 when not allowed | 0 I explicitly told curl to use HTTP/2.0 on the second line of the code snipped above. Does anyone have any idea what that error message

Advertisement