据我了解,POST 参数Content-Type
只能使用multipart/form-data
或发送x-www-form-urlencoded
。那正确吗?我想发送包裹在 JSON 中的参数。那可能吗?请问请求中的参数
POST /login HTTP/1.1
Host: localhost:8080
Content-Type: application/json
{"username": "test","password": "test"}
被识别为username=test&password=test
?