Problem using python plugin HttpPost

I’m having trouble sending a JSON payload via HttpPost. The plugin’s documentation mentions that the data should be sent as bytes, but when I encode the JSON into bytes, the request body ends up as an empty {}.

Could someone provide an example of how to properly format and send the request? What specific format is expected in the body?

Hello,

Here’s a Lua example where a POST request with JSON is made to an external web site. The function to use is DumpJson

HTH