let method change
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Oct 2008 11:56:11 +0000 (12:56 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Oct 2008 11:56:11 +0000 (12:56 +0100)
http.c

diff --git a/http.c b/http.c
index 386ed78..a7b3ba2 100644 (file)
--- a/http.c
+++ b/http.c
@@ -253,6 +253,7 @@ int obtain_cookie(struct anyconnect_info *vpninfo)
        xmlNode *xml_node;
        char buf[65536];
        int result, buflen;
+       char *method = "GET";
 
  retry:
        if (!vpninfo->https_ssl && open_https(vpninfo)) {
@@ -270,7 +271,7 @@ int obtain_cookie(struct anyconnect_info *vpninfo)
         *
         * So we process the HTTP for ourselves...
         */
-       my_SSL_printf(vpninfo->https_ssl, "GET %s HTTP/1.1\r\n", vpninfo->urlpath);
+       my_SSL_printf(vpninfo->https_ssl, "%s %s HTTP/1.1\r\n", method, vpninfo->urlpath);
        my_SSL_printf(vpninfo->https_ssl, "Host: %s\r\n", vpninfo->hostname);
        if (vpninfo->cookies) {
                my_SSL_printf(vpninfo->https_ssl, "Cookie: ");