http: Add new X-* HTTP headers
authorKevin Cernekee <cernekee@gmail.com>
Sat, 27 Oct 2012 23:18:28 +0000 (16:18 -0700)
committerKevin Cernekee <cernekee@gmail.com>
Sun, 28 Oct 2012 08:22:56 +0000 (01:22 -0700)
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 <cernekee@gmail.com>
http.c

diff --git a/http.c b/http.c
index d0a34b9..def8b9d 100644 (file)
--- 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,