From 723ea4660e82e8d399135d24ad56bf8c5fd4faa8 Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Sat, 27 Oct 2012 16:18:28 -0700 Subject: [PATCH] http: Add new X-* HTTP headers Newer AnyConnect clients (e.g. v3.1) specify X-Aggregate-Auth and X-AnyConnect-Platform. These are required by some gateways. Signed-off-by: Kevin Cernekee --- http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.c b/http.c index d0a34b9..def8b9d 100644 --- a/http.c +++ b/http.c @@ -439,6 +439,8 @@ static void add_common_headers(struct openconnect_info *vpninfo, struct oc_text_ opt->value, opt->next ? "; " : "\r\n"); } buf_append(buf, "X-Transcend-Version: 1\r\n"); + buf_append(buf, "X-Aggregate-Auth: 1\r\n"); + buf_append(buf, "X-AnyConnect-Platform: %s\r\n", vpninfo->platname); } static int fetch_config(struct openconnect_info *vpninfo, char *fu, char *bu, -- 2.7.4