curl-library
HTTP2 push notifications - APNs JSON response
From: Miloš Ljumović <milos_at_expert.its.me>
Date: Thu, 08 Dec 2016 23:19:45 +0100
Date: Thu, 08 Dec 2016 23:19:45 +0100
I am successfully using libcurl to send push notifications towards Apple
APN service.
Recently I learned that when response code is other than 200 (success)
APN sends additional JSON information about error:
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html
See table "Table 8-5APNs JSON data keys".
I was observing both:
https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
and struct Curl_easy, but I couldn't find a way to retrieve above JSON
information.
Can someone point me out how to achieve this?
Thank you.
-- Miloš Ljumović Operating systems specialist Spec.App. http://milos.expert.its.me ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-12-08