The first case is telling the web server that you are posting JSON data as in:
{"Name": "John Smith", "Age": 23}
The second case is telling the web server that you will be encoding the parameters in the URL:
Name=John+Smith&Age=23
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…