aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-09-04 11:00:52 +0000
committerWerner Koch <[email protected]>2006-09-04 11:00:52 +0000
commit92550e3016c1b88a1af629261c81316e3df156b8 (patch)
tree2930f2f70d3226db266d5a85c1fa2d4d42a4f65e /common/http.h
parentAdded comamnds PUTVAL and GETVAL (diff)
downloadgnupg-92550e3016c1b88a1af629261c81316e3df156b8.tar.gz
gnupg-92550e3016c1b88a1af629261c81316e3df156b8.zip
Support to read response headers. Required for redirection support in the
dirmngr package.
Diffstat (limited to 'common/http.h')
-rw-r--r--common/http.h4
1 files changed, 3 insertions, 1 deletions
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);