External data
Titanium provides several methods of retrieving external data. Some of which (such as the bonjour service) are platform specific. All of the commands are under Ti.Network
. Most of the time you will use Ti.Network.createHTTPClient
to access web services with the GET
and POST
methods.
You will use this method a lot in your apps, so it is important that you understand how to use it and what it can do. Let's walk through a typical example of a Titanium HTTP data retrieval request. The method for posting data is pretty much the same as getting it. I'll explain the differences in the next section.