我想将来自 Objective-C 代码的发布请求发送到带有 URL 的 php 脚本
http://ggg.abc.com/example.php?MO&email=test@gmail.com&message=TESTMSG&recipient=11111
我尝试如下使用 ASIFormDataRequest,但是如何在请求中指定请求变量 MO?
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"];
或任何其他方式来做到这一点?