Comparison of iOS network request frameworks and ios request frameworks
Currently, there are three main frameworks: ASIHTTPRequest, AFNetworking, and MKNetworkKit.
The ASIHTTPRequest framework was the first designed framework. It is powerful but does not support ARC and has been updated. AFNetworking is a later framework, which is simpler than ASIHTTPRequest. The source of MKNetworkKit's design philosophy and the former two combine the common characteristics of the first two frameworks and add new features. Compared with the former two, MKNetworkKit is the most lightweight framework.
Information Source: Instructor Guan Dongsheng's ios development guide;
IOS Network Development
Mobile Phone: IOS has many network frameworks, the most classic ASHTTP
AFNETWORK is recommended.
Server: depending on the language you are familiar with, the server has a web service. Your client requests this web service and returns data. The data format is often json, xml, or string.
The other is the knowledge of uikit. Since you are a standalone app, this is not a problem.
Ios network problems
The problem is clearly described. Whether the json content I sent should be this:
{"Username": "testapp", "role_id": 2, "password": "123 "}
The server returns an empty result.