tags:

views:

198

answers:

4

Hi to all, I want to make an iPhone application that send some data to php web site.

Which is the best way to do it? Someone know how application like facebook do it? I can avoid to use SSL?

Thanks!

+1  A: 

Cocoa Touch has HTTP classes such as CFHTTP you can do this with - see this manual section

Paul Dixon
A: 

I came across this when I was looking into it a while back: http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/index.html

Brian
+1  A: 

Here is an example using NSUrlRequest: http://stackoverflow.com/questions/330060/problem-using-nsurlrequest-to-post-data-to-server

MathieuK
A: 

You would have PHP code that does all the dirty work (save data, create users, search products, etc.). The iPhone app would just request PHP files via the different methods mentioned above (NSUrlRequest and friends) and send data to those requests. In a way, you would be creating an API for your web-based PHP application.

mga