From 92550e3016c1b88a1af629261c81316e3df156b8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 4 Sep 2006 11:00:52 +0000 Subject: Support to read response headers. Required for redirection support in the dirmngr package. --- common/http.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/http.h') diff --git a/common/http.h b/common/http.h index e311afe60..0fc2082a3 100644 --- a/common/http.h +++ b/common/http.h @@ -66,7 +66,8 @@ enum HTTP_FLAG_TRY_PROXY = 1, HTTP_FLAG_NO_SHUTDOWN = 2, HTTP_FLAG_TRY_SRV = 4, - HTTP_FLAG_LOG_RESP = 8 + HTTP_FLAG_LOG_RESP = 8, + HTTP_FLAG_NEED_HEADER = 16 }; struct http_context_s; @@ -106,6 +107,7 @@ FILE *http_get_read_ptr (http_t hd); FILE *http_get_write_ptr (http_t hd); #endif /*!HTTP_USE_ESTREAM*/ unsigned int http_get_status_code (http_t hd); +const char *http_get_header (http_t hd, const char *name); char *http_escape_string (const char *string, const char *specials); -- cgit v1.2.3