title: How to enable cookies when POSTING with URLConnection in iPhone SDK?
body: <p>I am trying to do a POST towards a site which utilizes secure session with cookies.
  Ofcourse this won't work with the code I have posted below. It keeps responding with a non-authorized message.</p>
  
  <p>Is there any way I can use cookies in my code or at least simulate cookie usage? </p>
  
  <pre><code>    NSURL *url = [[NSURL alloc] initWithString:@"https://long_and_complicated_url"];
   NSURLRequest *request = [[NSURLRequest alloc] initWithURL: url]; 
   NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
  </code></pre>
  
  <p>Best regards
  //Abeansits</p>