View Single Post
  #1  
Old 03-22-2017, 07:59 AM
 
ajeetsingh ajeetsingh is offline
 

Member
  
Join Date: Dec 2016
Posts: 28
 

Default 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($chCURLOPT_URL$final_url);
            
curl_setopt($ch, , true);
            
curl_setopt($chCURLOPT_HTTPHEADER$headers);
            
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);

            
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
            
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.
Reply With Quote