HTTP Client data container for form(multipart/form-data)
Dependencies: mbed EthernetInterface HTTPClient mbed-rtos
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.
Generated on Wed Jul 13 2022 04:23:07 by 1.7.2