I don’t understand the difference between
a) on the server side initiating a cURL connection and transmit POST information to http://somesite.com/action and receiving XML data
and
b) using cURL to access RESTful web services
Are a) and b) the same thing? Are they synonymous?
I’m not sure I understand the significance of “on the server side”, please elaborate if there is any. Otherwise:
Accessing a RESTful web service consists of accessing an URL via HTTP, so b, is really a subset of a.
When done right, the client usually needs to issue multiple GET request to “drill down” to the specific resource it intends to work with. Then it may cache the specific URL, but hard-coding it or constructing it on the client side is not considered elegant.