REST API + PHP can't pass values with curl

REST API + PHP can't pass values with curl

Hi'

I'm trying to get all the request with PHP but i'm stuck at this error:

Failed No operation name specified in request. Invalid request.


My code is:

$data = array('OPERATION_NAME' => 'GET_REQUESTS', 'TECHNICIAN_KEY' => 'XXXXXXXX', 'INPUT_DATA' => array( 'from' => 0,'limit' => 5, 'filterby' => 'All_requests') );                                                                    
$data_string = json_encode($data);                                                                                   
                         
 
$ch = curl_init(' http://SERVER_IP/sdpapi/request');                                                                      
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                     
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);                                                                  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                      
curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                          
    'Content-Type: application/json',                                                                                
    'Content-Length: ' . strlen($data_string))                                                                       
);                                                                                                                   
                                                                                                                     
$result = curl_exec($ch);
print_r($result);


Can someone help me to understand my error?

thanks

                  New to ADSelfService Plus?