I am using ASIHttpRequest (version 1.8-95) for Iphone and wanted to create a synchronous DELETE request along with some body data. I went like this:
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:nsUrl]; [request appendPostData:[@"some body params" dataUsingEncoding:NSUTF8StringEncoding]]; [request setRequestMethod:@"DELETE"]; [request startSynchronous];
Although I have been confirmed on the client side through
NSLog(@"request: method:%@", request.requestMethod);
so that the method was correctly set to "DELETE" on the server side, a "POST" request was received!
If I just lower
[request appendPostData: ..]
on the server side received the correct DELETE)
So what happened to my request? Thanks for any solutions.
respectfully
creator_11
source share