CoreBOSBB
Webservice by cURL? - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: Webservice by cURL? (/showthread.php?tid=477)



Webservice by cURL? - Guido1982 - 11-01-2016

Preparing for my webservice project, I was wondering the following. I noticed HTTP_CLIENT is the recommended approach, but I also see the latest release is from 2008. I've used simple cURL requests in my ExactOnline module to connect to the Exact API (and have also used cURL to connect to the Twitter API). Wouldn't that be possible?


RE: Webservice by cURL? - joebordes - 11-02-2016

I suppose so, but the existing libraries are rather easy to use and very tested.


RE: Webservice by cURL? - Guido1982 - 11-02-2016

But they're just wrapper classes right?


RE: Webservice by cURL? - joebordes - 11-02-2016

Yes, they are. cURL works perfectly but the libraries are at a higher level and make it a lot easier.


RE: Webservice by cURL? - Guido1982 - 11-02-2016

Ah, thanks. Would you still advise HTTP_CLIENT or a different lib?


RE: Webservice by cURL? - joebordes - 11-04-2016

For PHP, yes I would, although the truth is that I haven't investigated if better options exist.


RE: Webservice by cURL? - Guido1982 - 11-04-2016

I'll see what's out there and if I come accross anything I'll let you know.