You can try something like this:
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, '<path_to_your_script>/receive_data.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, "code=1&r_id=14");
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}