title: Send an http delete request
body: <p>I need to how I can send an http delete request, I've implemented the code below</p>
  
  <pre><code>- (void) deleteSyncRequestWithURL:(NSString *) url
  {
      NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
  
      [request setURL:[NSURL URLWithString:url]];
      [request setHTTPMethod:@"DELETE"];  
      _connection = [[NSURLConnection connectionWithRequest:request delegate:self] retain];    
  }
  </code></pre>
  
  <p>But I've got a 404 status. </p>
  
  <p>Does anyone know what I'm missing?? </p>
  
  <p>P.S: I'm using xcode 3.2.3, simulator 4.0</p>