How to use HttpRequest class in CI |
[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
[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');
[eluser]Unknown[/eluser]
Thanks...Thank You So much... This is working perfectly.... |
Welcome Guest, Not a member yet? Register Sign In |