Re: Need HTTP Server & JSON recommendations
Re: Need HTTP Server & JSON recommendations
- Subject: Re: Need HTTP Server & JSON recommendations
- From: Dru Satori <email@hidden>
- Date: Mon, 6 Dec 2010 14:56:34 -0500
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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden