title: Using objective-c to create an HTTP POST message and handle returned XML data
body: <p><strong>Introduction to the situation</strong></p>
  
  <p>For an application I'm currently developing, I need to code up to a website's API to handle uploading of new videos, as well as validating user login and so forth. In the documentation for the API, the examples provided of how to use it is all in PHP, and I'm not sure what the best way of handling this is in objective-c, as when it comes to protocol programming my experience with the obj-c language falls short.</p>
  
  <p><strong>Deeper explanation</strong></p>
  
  <p>I shall avoid posting any details about the API as this should be kept secret, so I hope my explanation will be enough to generate a simple example/answer of some sort.</p>
  
  <p>So the basic idea is that you send an HTTP POST request to the API url. The output of calling this URL will be XML information about the site and the current user logged in.</p>
  
  <p>When sending the POST request to the API I have some choices about certain variables I want to send with the request, depending on what kind of information I want returned (This could be things like a user's password, user ID, and so forth).</p>
  
  <p>The variables you send to the API is an array of alphabetically sorted key-value pairs (where the variable to send to the API is the key, and the value is what you want returned from that key).</p>
  
  <p><strong>The Question</strong></p>
  
  <p>My question simply is how you go about executing an HTTP POST request to a certain URL and handle returned XML data? Is there even any in-build functionality of doing so in obj-c?</p>
  
  <p>I've been researching on this subject but I can't seem to find any information that's relevant to this specific problem, but if there is any articles on it then I would be grateful for that as well.</p>