I'm writing this post for everyone who - like me - is trying to send requests with: Content-Type: application/json
.
I figured it out the hard way (by capturing the packet sent from the PHP code sample) that the Content-Type
needs to be multipart/form-data
.