function xhr_satuhaji_post($url,$data){
  global $ar,$db;
  $dt=[];
  $headers = [
    'accept: application/json',
    'Accept-Encoding: gzip',
    'Content-Type: application/json',
    'Host: haji.kemenag.go.id',
    'x-key: pBgL$%12A'
  ];    
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  $response = curl_exec($ch);
  if (curl_errno($ch)) {
    $dt['message']=curl_error($ch);
  } else {
    $dt['success']=true;  
    $dt['response']=$response;
  }
  curl_close($ch);
  return $response;
}