Sending a JSON via POST in NSURLRequest

前端 未结 4 2019
轻奢々
轻奢々 2020-12-08 17:07

I have a problem with sending a JSON to a Server with REST API. This is the code i use:

NSString *jsonPostBody = [NSString stringWithFormat:@\"\'json\' = \'{         


        
4条回答
  •  春和景丽
    2020-12-08 18:06

    You can test different headers and form parameters using the Chrome Advanced Rest Client. So, before coding you could know how the web service is behaving using this tool.

提交回复
热议问题