515d9af8 by G Manojkumar

Common curl

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