From: David Woodhouse Date: Wed, 1 Oct 2008 11:56:11 +0000 (+0100) Subject: let method change X-Git-Tag: v0.90~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19b0fce376d45ae8e631b5a3b692742691b4b75b;p=platform%2Fupstream%2Fopenconnect.git let method change --- diff --git a/http.c b/http.c index 386ed78..a7b3ba2 100644 --- 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: ");