I'm using cURL to get some data and I'm passing some POST values to it. Here is the code:
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "http://wwwsomesite.com/getdat.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "value=123465790");
curl_exec($ch);
curl_close($ch);
The cURL request is returning the entire HTML code of the result page.
What I want is that the page and all its assets (icons/logos) to load in an iframe-like component.
I am unable to feed the data to AngularJs.
How can this be achieved?