Search code examples
iosnsurlconnectionmknetworkkit

MKNetworkKit / NSURLConnection etc


I am building an iOS app that is based on a webserver. I have previous build this app with Titanium and I was sending requests on the server. For example if I want to login I am sending this request:
www.thedomain.com/login.cmf?&email=myemail&password=pass. The server is replying me with a string. Actually what I need is just to send this urls and get the strings. What it the best way to do it?


Solution

  • For simple use cases like this, use NSURLConnection in asynchronous mode implementing the delegate. When passing credentials around, you should also use (at least) the basic HTTP authentication method over https.