Send a file over http:
curl http://server.com -H “Content-Type: application/json” --data-binary @test.json
Call curl.SendFile() with appropriate mime type (“application/json” in this case):
curl.Init()
url = 'http://server.com'
infile = 'test.json'
respfile = 'send_response.json'
res = curl.SendFile(url, infile, 'application/json', respfile)