Welcome Guest, Not a member yet? Register   Sign In
Accepting callback GET parameters
#11

[eluser]Uto[/eluser]
After trying some solutions, I sticked to the first one solution provided, having a php script out of CI resending the GET parameter as POST, and it apparently works fine. Here is the code (I used curl):

Code:
$XML = $_GET["peticion"];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.mysite.com/index.php/callback/curl");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"peticion=$XML");
$result= curl_exec ($ch);
curl_close ($ch);

Simple and effective Smile
#12

[eluser]iNfLuX[/eluser]
Nice one : )




Theme © iAndrew 2016 - Forum software by © MyBB