28 Web Services
It is common for an application to need information from somewhere beyond the user’s computer. The easiest way to make that information available is to put it on a web server and publish the URL that provides the desired information. Web servers communicate using HTTP or HTTPS.
HTTP (Hypertext Transfer Protocol) was originally designed for serving HTML documents for rendering in a web browser. As the web’s popularity soared, so did creative uses of HTTP. Today, HTTP is commonly used not only to serve content for web browsers, but also structured data for any software that speaks HTTP. In this chapter you will see the latter, but the concepts will be applicable to all web services.
Using a web service is simple: ...
Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.