Http Form in iPhone App?

Discussion in 'iOS Programming' started by Rens, Jun 2, 2010.

  1. Rens macrumors newbie

    Jun 9, 2009
    Hey guys,

    So, I'm really (and then I mean really really) new to iPhone SDK. Now, I wanna make an app that can log in to a http form but without actually going into safari. I only need the data from the site and I want to login with just a user name and password. I want something like the authentication tab of asihttprequest, but only the authentication part. Anyone know how?

    P.S. The method is post and it's a php site. please just keep it really simple
  2. skunkworker macrumors regular

    Sep 9, 2007
    Create a NSURLRequest and and NSURLConnection, you set the contents of the body in the request and use the POST method to authenticate with the server.
  3. Rens thread starter macrumors newbie

    Jun 9, 2009

    And how exactly do I do this? Can you give an example please?

Share This Page