Php curl always return TRUE. Though data send in request is wrong and at server side its showing error HTTP 400 -Bad request. here, is my sample code. It should have returned FALSE.
$curl = curl_init($url);
curl_setopt($curl,CURLOPT_CUSTOMREQUEST,"PUT");
curl_setopt($curl, CURLOPT_HTTPHEADER,$headers);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl,CURLOPT_POSTFIELDS,$update_para);
$curl_response = curl_exec($curl);