CodeIgniter Forums
get return value from executed url - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: get return value from executed url (/showthread.php?tid=42286)



get return value from executed url - El Forum - 06-02-2011

[eluser]marjune[/eluser]
hi, been working in sms stuff now i want to execute url into another web server.

Example, the url is: www.sampleurl.com/sample?username=xxxxxxx&password=xxxxxx&type=0&dlr=0&destination=91xxxxxxxxx2&source=testing&message=test

then after executing it returns a value like printing message in the webpage, and all i need is to get those value and i don't have any idea to do so!! can somebody tell me pls...

thanks!


get return value from executed url - El Forum - 06-02-2011

[eluser]Jaketoolson[/eluser]
Using your URL, $_GET holds an array of the data.
Code:
array(
      'username' => 'xxxxxx',
      'source' => 'testing',
      'message' => 'test',
      'dlr' => '0',
      'destination' => '91'
      // ETC
)



get return value from executed url - El Forum - 06-03-2011

[eluser]cideveloper[/eluser]
How is the data returned? XML, json, etc. How are you calling the url? curl, fopen, etc?