$url = 'http://192.168.5.241:8893/index.php?a=SendMessage&m=taskSend';
$ci = curl_init ();
/* Curl settings */
curl_setopt ( $ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );
curl_setopt ( $ci, CURLOPT_CONNECTTIMEOUT, 10 );
curl_setopt ( $ci, CURLOPT_TIMEOUT, 10 );
curl_setopt ( $ci, CURLOPT_RETURNTRANSFER, TRUE );
curl_setopt ( $ci, CURLOPT_ENCODING, "" );
curl_setopt ( $ci, CURLOPT_HEADER, FALSE );
$body = http_build_query($_POST);
curl_setopt ( $ci, CURLOPT_POST, TRUE );
curl_setopt ( $ci, CURLOPT_POSTFIELDS, $body );
curl_setopt ( $ci, CURLOPT_URL, $url );
curl_setopt ( $ci, CURLINFO_HEADER_OUT, TRUE );
$response = curl_exec ( $ci );
$http_code = curl_getinfo ( $ci, CURLINFO_HTTP_CODE );
$http_info = curl_getinfo ( $ci );
echo $response;