in reply to Problem with content format in HTTP Request.
Are you able to create a working request with Postman? This would be a good starting point for a Perl implementation.
Greetings,-jo