error 403 Forbidden while adding contacts to zoho crm using api

error 403 Forbidden while adding contacts to zoho crm using api

Hello there, im facing trouble in adding a contact using zoho api's. when i try to send the contact xml through curl in localhost it works, but when i upload the file to a server its saying " 403 Forbidden", can anyone please help me.? here is the code


$auth="23424829348"
$xml = "<Contacts>
<row no=\"1\">
<FL val=\"First Name\">". $first_name ."</FL>
<FL val=\"Last Name\">". $last_name ."</FL>
<FL val=\"Account Name\">Test Bucky</FL>
<FL val=\"Sales Partner Name\">". $sales_partner_name ."</FL>
<FL val=\"Sales Partner Email\">". $sales_partner_email ."</FL>
<FL val=\"Email \">". $email ."</FL>
</row>
</Contacts>";
$p_true_url = "https://crm.zoho.com/crm/private/xml/Contacts/insertRecords?";
$p_true_query = "authtoken=" . $auth . "&scope=crmapi&newFormat=1&xmlData=" . $xml . "";

$p_true1 = curl_init();
curl_setopt($p_true1, CURLOPT_URL, $p_true_url);
curl_setopt($p_true1, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($p_true1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($p_true1, CURLOPT_TIMEOUT, 60);
curl_setopt($p_true1, CURLOPT_POST, 1);
curl_setopt($p_true1, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($p_true1, CURLOPT_POSTFIELDS, $p_true_query);
$p_true_response = curl_exec($p_true1);
curl_close ( $p_true1 );