HTTP Client data container for form(multipart/form-data)

Dependencies:   mbed EthernetInterface HTTPClient mbed-rtos

Embed: (wiki syntax)

« Back to documentation index

stpost Struct Reference

stpost Struct Reference

HTTPPoster HTTP Client data container for form(multipart/form-data) More...

#include <HTTPPoster.h>


Detailed Description

HTTPPoster HTTP Client data container for form(multipart/form-data)

 *HTTPClient client;
 *HTTPPoster data;
 *data.addFile("image", "/local/image.jpg");
 *data.add("title", "hello");
 *string url = "http://va009039.appspot.com/mbed/upload/";
 *HTTPResult r = client.post(url.c_str(), data, NULL);
 *printf("result:%d HTTPResponseCode: %d\n", r, client.getHTTPResponseCode());
 *

Definition at line 24 of file HTTPPoster.h.