Print NSMutableURLRequest Contents

后端 未结 2 1912
情书的邮戳
情书的邮戳 2021-02-13 03:57

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:12

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

提交回复
热议问题