There could be a situation where you would like for an app to respond to HTTP requests. Creating a server that appropriately responds to different requests can be a fairly daunting task.
Fortunately, Fabio Rodella has created a wrapper class for the Mongoose server that handles all http requests, arranges the data, and returns appropriate responses along with a tutorial showing a sample servelet in action. Mongoose is a cross platform open source web server that is often embedded within applications.
You can read more at the Crocodella site here:
Java Style Servlets In Obj-C With Mongoose
The wrapper is available with a sample app on Github here:
https://github.com/crocodella/MongooseWrapper
Looks like a simple way to add useful server functionality into an app.
[via Under The Bridge]
©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.