515d9af8 by G Manojkumar

Common curl

1 parent 93fe7796
......@@ -173,14 +173,18 @@ class RecordController extends Controller {
$query = http_build_query($inputArray);
$url .= $query;
try{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3);
$response = curl_exec($ch);
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3);
// $response = curl_exec($ch);
curl_close($ch);
// curl_close($ch);
$smscontroller = new SmsController();
$response=$smscontroller->smsCurl($url);
//curl_close($ch);
if($response!=''){
return "<script>simpleNotification('success','topRight','SMS Sent successfully!!');</script>";
}else{
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!