Though there are several options to do this within your application from 
scratch, I think it is a bad idea.  Security is an ever increasing problem, and 
rolling your own httpd server is kinda risky when there are ready made options 
out there.  Because of this, I embed the open source and commercially viable 
BSD licensed lighttpd.  

The downside to this is that you have to be creative with handling the requests 
now.  Cgi in the httpd server is the easiest way to go.  Using fastcgi, it is 
fairly easy to implement a tool the will respond to the requests using a 
foundation tool too access your existing cocoa classes.  This is how I am 
implemented in a couple of my projects and I have been very pleased with 
performance, but it can be tricky to set up the first time in your design.  
Once you get it worked out, it is powerful, and you can deploy single app 
bundle without haveing to write your own web server.

Andy 'Dru' Satori - all typos courtesy of fat finger and an iPad

On Dec 6, 2010, at 12:21 PM, Todd Freese <applecocoal...@filmworkers.com> wrote:

> I have an existing CoreData app that now needs to share it's data via JSON. 
> Can anyone recommend a framework or sample code that would include a simple 
> HTTP server? I googled and found a bunch of JSON frameworks which look great. 
> The part I need help with is the HTTP server.
> 
> Any suggestions or recommendations would be appreciated!
> 
> Todd
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/dru%40druware.com
> 
> This email sent to d...@druware.com
> 
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to