title: Send HTTPS Request in XCode (iOS)
body: <p>I need your help :)</p>
  
  <p>I'm about changing the http request into a https request from my app. For now I have used <a href="http://allseeing-i.com/ASIHTTPRequest/" rel="nofollow">ASIHTTPRequest</a> and followed this <a href="http://www.raywenderlich.com/2965/how-to-write-an-ios-app-that-uses-a-web-service" rel="nofollow">tutorial</a>. You have to know that I am a total beginner in this area of https and ssl. I appreciate any help, really.</p>
  
  <p>This is the code of my http request:</p>
  
  <pre><code>- (void)fetchDataFromServer{
  
  // Create Instance
  ASIFormDataRequest *request = [[ASIFormDataRequest alloc] initWithURL:url];
  
  
  // Parameter der POST Anfrage setzen
  [request setPostValue:@"anything" forKey:@"app_action"];
  
  
  [request setValidatesSecureCertificate:NO]; // no certificate so far
  request.delegate = self; // assign delegate
  [request startAsynchronous]; // send request
  </code></pre>
  
  <p>}</p>
  
  <p>That worked fine. But now I need to protect the data connection and therefore I have to use <strong>https</strong>.</p>
  
  <p>How can I realize this need? Is <a href="http://allseeing-i.com/ASIHTTPRequest/" rel="nofollow">ASIHTTPRequest</a> the right thing for that and it is even supporting that? What do I need to know of the certificate in the server?</p>
  
  <p>Please tell me everything you know :)</p>
  
  <p>Thank you very much - you're the best.</p>
  
  <p>Regards
  Chris</p>