iOS 服务端java接收到数据为空

我们的服务端,忽然无法接收到我post 传过去的json数据,以前好几个月都没问题,我的代码大致如下,求大神解救
self.manager = [AFHTTPRequestOperationManager manager];
self.manager.responseSerializer = [AFJSONResponseSerializer serializer];

self.manager.requestSerializer=[AFJSONRequestSerializer serializer];

        self.manager.responseSerializer = [[AFHTTPResponseSerializer alloc] init];
        self.manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
        [self.manager.requestSerializer setValue:@"iphone" forHTTPHeaderField:@"header-platform"];

        self.manager.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModePublicKey];
        self.manager.securityPolicy.allowInvalidCertificates = YES;
        self.manager.securityPolicy.validatesDomainName = NO;
        self.manager.securityPolicy.validatesCertificateChain = NO;

        self.manager.requestSerializer.timeoutInterval = 60;

      [self.manager POST:urlString parameters:dict success:^(AFHTTPRequestOperation *operation, id responseObject) {
          [self requestFinished:responseObject];
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
          [self requestFailed:error];
      }];
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐