Need help getting a Curl script working with WP/GravityFlow plugin

I’m trying to add a snippet for using Alfrsco API so it sends the copias1.docx file in the Curl function to the Curl URL in curl_setopt_array

Is it possible that wordpres does not work with these libraries?
Because it doesn’t give me any kind of error but it doesn’t work for me either. Those are CURL libraries.

That will be executed in a custom step of the GravityFLow plugin.

This is the Curl script that should work, but it doesn’t seem to want to play.

$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL => "http://127.0.0.1/alfresco/api/-default-/public/alfresco/versions/1/nodes/-shared-/children?alf_ticket=TICKET_e7a8e679709135f99a9409b50f77ef990e531132",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array('name' => 'Eddie May Upload','filedata'=> new CURLFILE('/C:/Users/Edgar/Desktop/copias1.docx')),
CURLOPT_HTTPHEADER => array( "Authorization: Basic dGVzdDp0ZXN0" ), ));
$response = curl_exec($curl);
echo ($response);
echo ($curl);

curl_close($curl);
echo $response;