Print NSMutableURLRequest Contents

后端 未结 2 1128
星月不相逢
星月不相逢 2021-02-13 03:49

I want to ask if anybody has ever tried printing out the values of a NSMutableURLRequest *request;

Here\'s my scenario, I have formed my XML and tried sending it using F

2条回答
  •  余生分开走
    2021-02-13 04:19

    NSLog(@"Request body %@", [[NSString alloc] initWithData:[request HTTPBody] encoding:NSUTF8StringEncoding]);
    

提交回复
热议问题