data post
This commit is contained in:
@@ -383,10 +383,11 @@ abstract class BaseController extends Controller
|
||||
$params2 .= $key2.'='.$value2.'&';
|
||||
|
||||
$params2 = trim($params2, '&');
|
||||
$url = $url.'?'.$params2;// add param to URL
|
||||
// $url = $url.'?'.$params2;// add param to URL
|
||||
log_message('critical', "API URL FINAL =>".$url );
|
||||
curl_setopt($curl, CURLOPT_FRESH_CONNECT, true);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
|
||||
break;
|
||||
case "POST":
|
||||
curl_setopt($curl, CURLOPT_POST, 1);
|
||||
|
||||
Reference in New Issue
Block a user