Monkey bread curl POST body

I started using the monkey bread curl plugin and am running into some issues.

I can’t figure out how to do a POST with a json body. Works great with PUT, but not with POST. Here is what I have:

[code] Dim c As New CURLSMBS

c.OptionURL = API_URL + “/upload”
c.OptionPost = True


c.CollectDebugData = true
c.CollectOutputData = true
c.CollectHeaderData = true

Dim intError as Integer = c.Perform
System.DebugLog c.OutputData[/code]

I was able to get the PUT to work by turning OptionUpload = True, but then I’m unable to change it to a POST. Any help would be appreciated.

Thank you

please use OptionPostFields instead of SetInputData for post.
what does DebugData say after transfer?