Best way to get data from a Servlet?


#1

Hello,

I’d like to write a simple iOS application that once the user enters three parameters in UIText fields (user id, password, and server URL), I could then POST that request and display the (String) response back on the screen.

I saw some examples in the BNR book on Objective C using NSData, but is this the best way?

I’m working though the iOS programming guide now thinking about getting data from a Servlet via POST as my first real play project…

I also have the O’Reiley Cookbook which uses the NSURLConnection class with a code block (not sure a block is required), which complicates understanding things.

Suggestions would be appreciated.

Thanks,

– m