I'm trying to create a POST request like:
POST /foo HTTP/1.1
Content-Type: application/json
Host: example.com
{"foo":1, "bar": 2}
As far as I can figure out, this is not currently possible.
If I set the Content-Type header of the request to 'application/json', add-form-data seems to do nothing at all.