aboutsummaryrefslogtreecommitdiffstats
path: root/include/local-def.h
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-14 16:24:26 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-14 16:24:26 +0100
commit71f29a4ccfadb0eeed83479e61287252f9804fa7 (patch)
tree65e8eb927e1ae317bd2179fff7f850bc6e47d41f /include/local-def.h
parent2a66b8d8b0f36d0c6ec8ee6d9739d6e4945a1e70 (diff)
Integrated Post for Fileupload Test
Diffstat (limited to 'include/local-def.h')
-rw-r--r--include/local-def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/local-def.h b/include/local-def.h
index 2f8fd202..a5d48bfd 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -60,6 +60,7 @@
#define DEFLT_API_TIMEOUT 0 // default Plugin API Timeout
#define DEFLT_CACHE_TIMEOUT 100000 // default Static File Chache [Client Side Cache 100000~=1day]
#define DEFLT_AUTH_TOKEN NULL // expect for debug should == NULL
+#define DEFLT_HTTP_TIMEOUT 15 // Max MibMicroHttp timeout
typedef int BOOL;
#ifndef FALSE
@@ -199,7 +200,8 @@ typedef struct {
const char *url;
char *plugin;
char *api;
- char *post;
+ char *post; // post data in raw format
+ int len; // post data len
json_object *jresp;
AFB_clientCtx *client; // needed because libmicrohttp cannot create an empty response
int restfull; // request is resfull [uuid token provided]