Can not send data to server with post request
Try this one
$postvars = '';foreach($data as $key=>$value) { $postvars .= $key . "=" . $value . "&";}rtrim($postvars , '&'); // remove last &$url = $topuplink."".$accesstoken;curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch, CURLOPT_POST, count($data)); // count of total post fieldscurl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);$response = curl_exec($ch);print_r($response);curl_close ($ch);