aboutsummaryrefslogtreecommitdiff
path: root/include/url.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/url.h')
-rw-r--r--include/url.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/url.h b/include/url.h
index 99a8b96..aa8f5b5 100644
--- a/include/url.h
+++ b/include/url.h
@@ -29,6 +29,7 @@ struct fcurl_data
size_t buffer_len; /* currently allocated buffers length */
size_t buffer_pos; /* end of data in buffer*/
int still_running; /* Is background url fetch still in progress */
+ long http_status; /* HTTP server response code */
};
typedef struct fcurl_data URL_FILE;
@@ -40,5 +41,6 @@ int url_feof(URL_FILE *file);
size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file);
char *url_fgets(char *ptr, size_t size, URL_FILE *file);
void url_rewind(URL_FILE *file);
-
+const char *http_response_str(long code);
+long get_http_response(CURLM *handle);
#endif // SPM_SPM_URL_H