Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CaptSaltyJack

macrumors 6502
Original poster
Jun 28, 2007
351
1
Obviously the cheapest way is to have a web server running on a host, and your iPhone app can use that. But I was wondering, if I wanted to build an iPhone app where a user could create an account & password, log in to authenticate, and send/retrieve data to/from the web site... is there any specialized API for that? I mean, should I use POST/GET requests? XML? JSON? What works best with the Cocoa Touch API?
 
After some research, it seems the best way is to send normal HTTP POST requests to a URL, and fetch the results as XML and use NSXMLParser to parse the results. Is this the best way, or is there an even better way to have an iPhone app interact with an HTTP server for user authentication, saving data, etc?
 
I apologize for not answering before. I use normal HTTP POSTs as well, and I chose to use my own format to write and parse the data because I didn't like the NSXMLParser.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.