objective c - iPhone ASIFormDataRequest with multipart/form-data -


As I read, its article: "The data has been posted in '/ x-www-form-urlencoded' format , Or 'multipart / form-data' format when uploading binary data or files. "

This is exactly my problem. I'm just sending one string to the server, but the server is only sending the multipart / form -Data 'accepts and as I only send a string, ASI Framework' application / x-www-form-urlencoded ' By making a POST request with the form automatically, because I'm not sending any binary data or file. Result: The server does not accept my POST request.

How can I solve this problem?

Thank you in advance for helping.

You can manually set the format:

  [ Request SetPost Format: ASIMUTPPARTFDatOstFormat];  

Comments