As far as I understand, POST parameters can be sent using Content-Type
only either multipart/form-data
or x-www-form-urlencoded
. Is that right?
I want to send the parameters wrapped in JSON. Is that possible?
Will the parameters in the request
POST /login HTTP/1.1
Host: localhost:8080
Content-Type: application/json
{"username": "test","password": "test"}
be identified as username=test&password=test
?