As stated in title, I send a POST request using ASIHTTPRequest and it fails, but the same POST request works in HTTPClient, am I doing something wrong?
- (void)postData:(NSData *)postData {
//...
NSMutableData *mutableData = [postData.mutableCopy autorelease];
[request setRequestMethod:@"POST"];
[request setPostBody:mutableData];
[request setPostLength:mutableData.length];
//....
}
That’s not quite enough in all cases, at least I also had to add the correct Content-Type header to the request: