I want to access a third-party URL with a few POST parameters to get some additional service.
As an example say I have to call http:\www.aaaaaa.com\Add.php with two numbers with POST parameters to get the summation of them. Then it will return the results.
<?php
if (isset($_POST['num1']) && isset($_POST['num2']) ) {
echo $_POST['num1']+$_POST['num2'];
}
?>
Is there possible to access that URL from PHP code in another server like ( http:\www.bbbbb.com\sum.php) without using javascript.
<?php
$num1=13;
$num2=14;
//want to get the summation of 13+14 using above service without using javascripts
?>