ho bisogno di come posso inviare una http eliminare richiesta, ho implementato il codice qui sottoManda un commento http eliminare richiesta
- (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];
}
Ma ho uno stato di 404.
Qualcuno sa cosa mi manca ??
P.S: sto usando Xcode 3.2.3, simulatore di 4,0
404 è "documento non trovato" - l'URL che stai chiedendo di essere eliminato non esiste. –
ma l'ho fatto con altri client e funziona – UnSaid
Ciò significa che l'altro client ha eliminato la risorsa, quindi non esiste più? –