使用的是ASIFormDataRequest开源框架,为了测试是否POST成功,我在服务器上自己写了一个 index.php
但是在使用ASIFormDataRequest开源框架时,使用语句:
[self setRequest:[ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://162.105.146.221/test"]]];
无法POST成功数据,应该将要提交的文件也写在后面!!!!!!!!!!
[self setRequest:[ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://162.105.146.221/test/index.php"]]];