The BlackBerry SDK does provide good support for networking, but the support is primitive. Not only are there a myriad of ways to connect to a server in order to make a request, and that we as developers are left to account for them all, but we must also have a fairly detailed understanding of the underlying protocol.
In this case, we will be creating an HttpConnection
object so we also need to have a basic understanding of the HTTP
protocol. The only thing that most people really know about HTTP
is that it is something you put in front of the website addresses in a browser.
The extremely simplistic answer is that HTTP
is a protocol designed for requesting files from one computer by another computer. The name, Hyper Text Transfer Protocol, comes from the idea that a document would have HyperText links embedded into it, which a user can use to gather more information about a topic. When this happens, one computer would request the linked document from the other so that the user...