cURL Error when trying to use REST PACTH - PHP
Content
I am trying to update a CO, i have the following error returned :
error:SSL read: error:00000000:lib(0):func(0):reason(0), errno 54
I tried everything and i still don't know how to successfully update this CO
Code Snippet
curl_setopt($ch, CURLOPT_URL,trim("site.com/services/rest/connect/v1.3/CO.Emp/567")); curl_setopt($ch, CURLOPT_USERPWD, $user . ":" . $pass); curl_setopt($ch, CURLOPT_PORT, 443); curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH"); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json',
0