正如我在ASI Documentation中读到的,它写道:“数据以'application/x-www-form-urlencoded'格式或'multipart/form-data'格式发布上传二进制数据或文件“。iPhone ASIFormDataRequest with multipart/form-data
这就是我的问题。我发送的只是一个字符串到服务器,但服务器只接受'multipart/form-data',当我发送一个字符串时,ASI框架使用'application/x-www-form-urlencoded'格式创建一个POST请求自动,因为我没有发送任何二进制数据或文件。结果:服务器不接受我的POST请求。
我该如何解决这个问题?
在此先感谢您的帮助。