http_build_query($post)

This commit is contained in:
CHIEFSOFT\ameye
2024-03-09 21:53:43 -05:00
parent 02658ab9b0
commit 24aedf3fd5
+3 -3
View File
@@ -385,9 +385,9 @@ abstract class BaseController extends Controller
$params2 = trim($params2, '&');
// $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, json_encode($data));
//curl_setopt($curl, CURLOPT_FRESH_CONNECT, true);
//curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
break;
case "POST":
curl_setopt($curl, CURLOPT_POST, 1);