How to make a HTTPS POST request

@ryanbartley,

Love, love, your Cinder-HTTP block, but a question:

Any advice on constructing a ‘multipart/form-data;’ POST request? I would love to have an easy way to upload multiple images and/or send data points to an api endpoint from cinder, but failing at every turn.

In python, i would do something like:

import requests

files = {}
files['image0'] = open(image0_path, 'rb')
files['image1'] = open(image1_path, 'rb')

data = {}
data['test'] = "This is totally a test."

r = requests.post(endpoint, files=files, data=data)

In Cinder, am faltering on how to construct that part of the request via:

request->appendHeader( http::Content( std::string( "multipart/form-data;" ), data ) );

Any Advice?

Keith