Post($params,true); $httpdetails = $response['http']; $code = $httpdetails['code']; if ($code == 200) { return true; } else { return false; } } } ?>