+
+ return MHD_YES;
+}
+
+int POST_put_iterator(void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size) {
+ struct put_state *ps = cls;
+
+ if (strncmp(key, "data", 5) == 0) {
+ ps->data_size = size;
+ ps->data = malloc(size);
+ memcpy(ps->data, data, size);
+ return MHD_NO;
+ }
+
+ return MHD_YES;