I want to send a post request from objective-C code to a php script with URL
http://ggg.abc.com/example.php?MO&email=test@gmail.com&message=TESTMSG&recipient=11111
I tried to use ASIFormDataRequest as below, but how do I specify the request variable MO in the request?
NSURL* url = [NSURL URLWithString:ServerApiURL];
ASIFormDataRequest* request = [ASIFormDataRequest requestWithURL:url];
[request setDelegate:self];
// Add the POST fields
//[request setPostValue:@"" forKey:@"MO"];
//[request setRequestMethod:@"MO"];
[request setPostValue:@"test@gmail.com" forKey:@"email"];
[request setPostValue:@"TESTMSG" forKey:@"message"];
[request setPostValue:@"11111" forKey:@"recipient"];
Or any other way to do this?