Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)

前端 未结 3 1770
春和景丽
春和景丽 2021-01-12 17:54

I am using AFnetworking library to post data on server.

Following is my code to post data on server.

- (void) callLoginAPI:(NSDictionary *)dictProfil         


        
3条回答
  •  遥遥无期
    2021-01-12 18:11

    Please add this line to your code, i hope it help you.

    manager.requestSerializer = [AFHTTPRequestSerializer serializer];
    

提交回复
热议问题