fill headers outside of http_post_file

This commit is contained in:
josch
2014-12-07 15:03:38 +01:00
parent a5e5092c13
commit a95a0f5c48
3 changed files with 39 additions and 26 deletions

View File

@@ -22,6 +22,8 @@
#include <jansson.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <curl/curl.h>
typedef struct mfhttp mfhttp;
@@ -38,9 +40,9 @@ int http_get_file(mfhttp * conn, const char *url,
const char *path);
json_t *http_parse_buf_json(mfhttp * conn, size_t flags,
json_error_t * error);
int http_post_file(mfhttp * conn, const char *url,
FILE * fh, const char *filename,
uint64_t filesize, const char *fhash,
int http_post_file(mfhttp * conn, const char *url, FILE * fh,
struct curl_slist **custom_headers,
uint64_t filesize,
int (*data_handler) (mfhttp * conn, void *data),
void *data);