Cocoa Programming for OS X: The Big Nerd Ranch Guide
by Aaron Hillegass, Adam Preble, Nate Chandler
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: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access