I m sending http request using php curl for message sending but it gives Object moved to here error.
<?php
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, "http://sms.chromeindia.com/SendSms.aspx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=XXXXX&password=XXXXXXX& to=XXXXXXXXXX&from=XXXXXX&message=Get Testing....");
$buffer = curl_exec($ch);
if(empty ($buffer))
{
echo " buffer is empty ";
}
else // enter code here
{
echo $buffer;
}
curl_close($ch);
?>