I am using juce::URL with POST data to talk to a 3rd party API. It accepts POST data with Content-Type : application/octet-stream and requires that I be able to encode all numbers in it. I have been using createInputStream(true, nullptr, nullptr, headers) to add custom headers.
Could URL store post data as a MemoryBlock internally (it is copied to a MemoryBlock anyway internally)?
* withPOSTData(const String& postData) method could convert String to MemoryBlock and store
* withPOSTData(const MemoryBlock& postData) could be added
Or is there another way to do this that I have missed?