- (void)netPOST {
NSString *stringUrl = [NSString stringWithFormat:@""];
NSURL *url = [NSURL URLWithString:stringUrl];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
request.timeoutInterval = 5.0;
request.HTTPMethod = @"POST";
NSString *bodyString = [NSString stringWithFormat:@"key=123456789"]; //带一个参数key传给服务器
request.HTTPBody = [bodyString dataUsingEncoding:NSUTF8StringEncoding];
NSURLSession *session = [NSURLSession sharedSession];
[[session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
// 数据解析...
}] resume];
}