REST Call not working in php

Hi, I have this code, it used to work but since today I doesn’t.
curl_setopt($rest, CURLOPT_URL,$url);
curl_setopt($rest, CURLOPT_RETURNTRANSFER, 1);//Hace que no se imprima la respuesta en pantalla
curl_setopt($rest, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($rest, CURLOPT_POST, 1);
curl_setopt($rest, CURLOPT_POSTFIELDS,$objectData);
curl_setopt($rest, CURLOPT_HTTPHEADER,
array("application-id: " . $appId,
"secret-key: " . $secretKey,
“Content-Type:application/json”,
“application-type: REST”));

$response = curl_exec($rest);
Hope this could be enough info.

Hi Antonio,

Are you getting an error back? If so, what does it say?

Regards,
Mark

Hi Mark,

No error returned, nothing happens when the php file is executed.

Thank you.

Hi Antonio,

Are you sure the request actually goes out? For every single request, there is going to be a response (or a timeout), but there’s got to be something coming back.

Regards,
Mark

Hi Mark,

Suddenlly it works, I didn’t change anything, was there any inconsistency in your servers? Any how, now it works, I hope this won’t happen again.

Regards.

Antonio.

Hi Antonio,

This is indeed strange, we have not had any outages with the servers. Please let us know if it happens again.

Regards,
Mark