Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I'm trying to figure out how to use HTTPClient to upload a picture using the TwitPic API. The API requires that you send some headers (for authorization), then two key/value pairs, one of which includes the image data. The curl command shown below is an example:
I think I can use
to deal with the first two lines. But is there any way to send two key/value pairs, one of which reads part of its data from a file, all in the same POST using HTTPClient? Maybe the secret is to use HTTPStream?