[artwork/http] Check response code and content type

Extends the http_client_ctx to hold the response code for a request.
Also adds the content type header, if it was a https request (using
libcurl instead of libevent)
This commit is contained in:
chme
2019-02-09 08:35:20 +01:00
parent 733a521df8
commit 9b8bff45ab
3 changed files with 33 additions and 8 deletions

View File

@@ -29,6 +29,9 @@ struct http_client_ctx
*/
int headers_only;
/* HTTP Response code */
int response_code;
/* Private */
int ret;
void *evbase;