title: NSURLConnection with blocks
body: <p>I'm using</p>
  
  <pre><code>[NSURLConnection connectionWithRequest:req delegate:self];
  </code></pre>
  
  <p>and then I use</p>
  
  <pre><code>-(BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace;
  -(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;
  -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;
  -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
  -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
  -(void)connectionDidFinishLoading:(NSURLConnection *)connection;
  </code></pre>
  
  <p>to handle data loading. Everything is ok and working fine but I don't like the beauty of this code )</p>
  
  <p>I wish to use blocks, to make my code looks like this:</p>
  
  <pre><code>[myConnection sendData:data 
            successBlock:^(void){NSLog(@"success");}
              errorBlock:^(NSError * error){NSLog(@"error.description: %@", error.description);}];
  </code></pre>
  
  <p>is it possible to use NSURLConnection with blocks?</p>