summaryrefslogtreecommitdiffstats
path: root/curl-wrap.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-04 18:53:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-05-04 14:59:54 +0200
commit61c01cc4bb615337ee0591fea987eb6bee83a78e (patch)
tree0b51db320d76c3abbef4018cc269983239babc47 /curl-wrap.h
parent27c0ffd6e475eba00aa8883a822a841a4555cf2d (diff)
POST using unescaped arguments
Add the ability to make a POST request without urlencode the arguments. This will only concatenate them instead. You can also specify the used separator. Change-Id: Icb61a5a20771a89e89159132365d86ee4c982d1c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'curl-wrap.h')
-rw-r--r--curl-wrap.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/curl-wrap.h b/curl-wrap.h
index 2e44f47..a6106e4 100644
--- a/curl-wrap.h
+++ b/curl-wrap.h
@@ -35,11 +35,17 @@ extern CURL *curl_wrap_prepare_get(const char *base, const char *path, const cha
extern CURL *curl_wrap_prepare_post_url_data(const char *url, const char *datatype, const char *data, size_t szdata);
-extern CURL *curl_wrap_prepare_post(const char *base, const char *path, const char * const *args);
-
extern int curl_wrap_add_header(CURL *curl, const char *header);
extern int curl_wrap_add_header_value(CURL *curl, const char *name, const char *value);
+CURL *curl_wrap_prepare_post_simple_unescaped(const char *base, const char *path, const char *args);
+
+CURL *curl_wrap_prepare_post_simple_escaped(const char *base, const char *path, char *args);
+
+CURL *curl_wrap_prepare_post_unescaped(const char *base, const char *path, const char *separator, const char * const *args);
+
+CURL *curl_wrap_prepare_post_escaped(const char *base, const char *path, const char * const *args);
+
/* vim: set colorcolumn=80: */