03-22-2017, 07:59 AM
|
|
|
|
Member
|
|
Join Date: Dec 2016
Posts: 28
|
|
|
Issue in Curl calling in xcart page
Hello,
I have an issue in calling the curl to send a notification message in admin area using code below:
PHP Code:
$url = 'https://updates.push.services.mozilla.com/wpush/v1/';
$headers = array(
'Content-Type: application/json',
'TTL: 600000'
);
foreach ($sub_ids as $key => $value) {
$final_url=$url.$value;
//echo $finCURLOPT_POSTCURLOPT_POSTCURLOPT_POSTCURLOPT_POSTCURLOPT_POSTCURLOPT_POSTal_url;
$ch = curl_init();
// Set the url, number of POST vars, POST data
curl_setopt($ch, CURLOPT_URL, $final_url);
curl_setopt($ch, , true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_close($ch);
Here $sub_ids is the subscription is which i get from browser for a client.
Please anyone can suggest me that what is wrong.
__________________
Ajeet Singh
Sr.Software Developer
Webkul Software Pvt. Ltd.
|
|