title: NSHTTPURLResponse
body: <p>Hey everbody, i'm trying to treat the response of a http post.
  My php is giving a simple message, so, how can i treat it?
  I mean, if gives me the "Error" message, do something, or "OK" do another thing.</p>
  
  <pre><code>NSHTTPURLResponse* urlResponse = nil;  
  NSError *error = [[NSError alloc] init];  
  NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;urlResponse error:&amp;error];  
  NSString *result = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
  NSLog(@"Response Code: %d", [urlResponse statusCode]);
  if ([urlResponse statusCode] &gt;= 200 &amp;&amp; [urlResponse statusCode] &lt; 300) {
      NSLog(@"Response: %@", result);
  
  }
  if (result == @"Logged") {
      NSLog(@"OK");
  }
  if (result == @"Error") {
      NSLog(@"No");
  }
  </code></pre>
  
  <p>Thanks!</p>