I’m very new to working with web services, and so I’m finding this pretty confusing.
If I have a URL I’m trying to post some JSON data to, I understand how to do this using the CURL PHP method.
What I’m wondering is, if I do this, and the URL has some kind of server response.. how do I get that response in my php and use it to take different actions within the PHP accordingly?
Thanks!
-Elliot
You’ll have to set the CURLOPT_RETURNTRANSFER option to true.
The response to your request will be available in the $result variable.