diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-04 18:53:56 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 14:12:02 +0100 |
commit | 16377de92c254202ab62d4118f94014ced06af14 (patch) | |
tree | 0b51db320d76c3abbef4018cc269983239babc47 /escape.h | |
parent | c4adbcb905dc37e4d8773cea6a77cbec3e1a02f8 (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 'escape.h')
-rw-r--r-- | escape.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,7 +17,8 @@ #pragma once extern char *escape_url(const char *base, const char *path, const char * const *args, size_t *length); -extern char *escape_args(const char * const *args, size_t *length); +extern const char *escape_args(const char * const *args, size_t *length); +extern const char *escape_str(const char *str, size_t *length); extern const char **unescape_args(const char *args); /* vim: set colorcolumn=80: */ |