Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
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?
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
I suppose so, but the existing libraries are rather easy to use and very tested.
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
But they're just wrapper classes right?
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
Yes, they are. cURL works perfectly but the libraries are at a higher level and make it a lot easier.
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
Ah, thanks. Would you still advise HTTP_CLIENT or a different lib?
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
For PHP, yes I would, although the truth is that I haven't investigated if better options exist.
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
I'll see what's out there and if I come accross anything I'll let you know.