ViRuS-CoBaS of It-Infinity
10/16/2018 - 10:09 AM

curl

  $arParams = [
      'KEY' => $text
  ];
  $ch = curl_init(API_SIGN);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($arParams));
  $response = curl_exec($ch);
  curl_close($ch);
  return $response;