Posting data to server and response is :{“Message”:“An error has occurred.”}

后端 未结 3 1340
长情又很酷
长情又很酷 2021-01-26 08:53

I have tried many methods of posting data to server but none of them worked and only response am getting is:

{\"Message\":\"An error has occurred.\"}

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-26 09:28

    You are passing the data in query string where as the data which you want to post should be passed as NSDictionary object converted to Data.

提交回复
热议问题