NickName:Dr. chamran Ask DateTime:2015-05-09T13:45:27 Objective-c Send Post request to json-RPC webservice In iOS i want send a POST request to a json-RPC web service. How can i do this? i read This Page before and this repo but none of them have helped me. Copyright Notice:Content Author:「Dr. chamran」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/30136495/objective-c-send-post-request-to-json-rpc-webservice Answers Michael 2015-05-09T06:02:19 Take a look at the popular AFNetworking networking library. This provides full networking functionality and very well documented code. Although you can also use Apple's networking APIs for this.\n\nSimple AFNetworking example:\n\nAFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];\nmanager.requestSerializer = [AFJSONRequestSerializer serializer];\n\nNSDictionary *params = @{@\"q\":@\"Chicago\",\n @\"units\":@\"imperial\",\n @\"type\":@\"like\",\n @\"mode\":@\"json\"\n };\n\n [manager GET:@\"http://api.openweathermap.org/data/2.5/weather\" parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {\n\n //Success\n\n } failure:^(AFHTTPRequestOperation *operation, NSError *error) {\n\n //Failure\n\n }];\n",