[PATCH 15/24] http: Add new X-* HTTP headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 at gmail.com>
---
 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,
-- 
1.7.10.4




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux