Hi
We are currently modifying the url of a web service that is consumed from sugarcrm, the instance is an instance located in the cloud.
This is an example of the code we implemented:
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://pruebas.dinissan.com.co/ClienteExternaSugarNegocio/cliente/crearOrModificarCliente',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_POSTFIELDS =>'
$response = curl_exec($curl);
curl_close($curl);
For some strange reason it generates error, but if consumed from postman or outside SugarCRM, this one does work.
What could be happening so that consumption within SugarCRM is not working?