I am trying to do HTTPS POST using curl api in C. I am posting binary data by converting it into base64. However the base64 converted data is getting modified by the curl library. The + symbols in the parameter are getting replaced with spaces. I tried setting the charset as utf-8 and the content type as json. That did not help. Is there a reason why this could be happening? I am on macOS.
Is there a way/option to tell curl to not touch/change my data?