• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get return value from executed url

#1
[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!

#2
[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
)

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.