June 2011
Intermediate to advanced
590 pages
19h 31m
English
When NSURLConnection talks to a web server, it uses the HTTP protocol. This protocol says that any data you send or receive must follow the HTTP specification. The actual data transferred to the server in this exercise is shown in Figure 25.10.
Figure 25.10 HTTP Request Format

Fortunately, NSURLRequest has a number of methods that allow you to specify a piece of the request and then properly format it for you.
Any service request has three parts: a request-line, the HTTP headers, and the HTTP body, which is optional. The request-line (which Apple calls a status line in its API) is the first line of the ...
Read now
Unlock full access