summaryrefslogtreecommitdiffstats
path: root/curl-wrap.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-17 17:00:04 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-05-04 14:59:54 +0200
commitfdea435076e718b2731aa6ad994cc49ff7e96477 (patch)
treec379acbc2ea99a10e91d794c35abca9f02418a35 /curl-wrap.h
parent61c01cc4bb615337ee0591fea987eb6bee83a78e (diff)
Add new function to retrieve HTTP response code
Change-Id: I1d01c95d6418646ef9d2f8f4b07210a33b10c117 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'curl-wrap.h')
-rw-r--r--curl-wrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/curl-wrap.h b/curl-wrap.h
index a6106e4..3b42ef4 100644
--- a/curl-wrap.h
+++ b/curl-wrap.h
@@ -29,6 +29,8 @@ extern void curl_wrap_do(CURL *curl, void (*callback)(void *closure, int status,
extern int curl_wrap_content_type_is (CURL * curl, const char *value);
+extern long curl_wrap_response_code_get(CURL *curl);
+
extern CURL *curl_wrap_prepare_get_url(const char *url);
extern CURL *curl_wrap_prepare_get(const char *base, const char *path, const char * const *args);