$curl = curl_init();
$url = "https://site.ru/test.php";
$args = array(
'id' => '1',
'user_id' => '100'
);
curl_setopt_array($curl,
array(
CURLOPT_URL => $url,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $args,
CURLOPT_RETURNTRANSFER => true,
)
);
$data = curl_exec($curl);
curl_close($curl);
echo $data;