title: URL applicationWillTerminate objective C
body: <p>I been trying to execute or request a url, inside de applicationWillTerminate event, but when i do it, the other functions, like:</p>
  
  <pre><code>- (NSURLRequest *)connection:(NSURLConnection *)connection
               willSendRequest:(NSURLRequest *)request            redirectResponse:(NSURLResponse *)redirectResponse {
    [baseURL autorelease];
    baseURL = [[request URL] retain];
    return request;
  }
  
  - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
    [responseData setLength:0];
  }
  
  - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
    [responseData appendData:data];
  }
  </code></pre>
  
  <p>they doesn't get executed, i guess because, the last function or event executed it is applicationWillTerminate. Is there a way to reach or do it.</p>