I am working on a CakePHP 2.x. I want to send data to another url from controller so I can access the data from their.
I want to do something like this :
function senddata(){
$a = 1;
$b= hello;
http://anotherwebsite/$a
}
I want to POST these values to another url. So I can get the values like this
$a = $_POST['a'];
How can I send data to external url from controller ?