请任何一个知道abhout如何发送请求,并在ASIHTTP发送文件的一些参数,我的代码是波纹管我不能够将文件发送ASIHTTP请求
NSURL *audiourl = [NSURL URLWithString:@"http://dev.kuwait.tt/demo_radioapps/radio_mobile/adduserrequest.php?program_id=3&user_name=abhishek&[email protected]&audiofile=review.caf&mode=AddRequest"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:audiourl];
[request addData:tempData withFileName:@"review.caf" andContentType:@"audio/caf" forKey:@"audiofile"];
[request setRequestMethod:@"POST"];
[request setDelegate:self];
[request startSynchronous];
这是不好的形式发送请求同步。您应该异步发送它以防止UI被锁定。 – jmstone617 2012-04-21 16:31:52