Welcome Guest, Not a member yet? Register   Sign In
How to use HttpRequest class in CI
#1

[eluser]Unknown[/eluser]
Hi All,
I am new to CI and having some issue in using the HttpRequest(). I wanted to make an External API call to another Server and to display the response XML from that Server. Any help is greatly appreciated....

Thanks
#2

[eluser]cideveloper[/eluser]
I suggest you use Phil Sturgeons curl library. makes it real simple to do external calls.

Code:
echo $this->curl->simple_get('http://www.randomsite.com/api.php?results=xml&data=1089');
#3

[eluser]Unknown[/eluser]
Thanks...Thank You So much... This is working perfectly....




Theme © iAndrew 2016 - Forum software by © MyBB