From: Rupa Schomaker Date: Wed, 1 Sep 2010 12:00:33 +0000 (-0500) Subject: FSMOD-69 - mod_curl - use method=post when post requested X-Git-Tag: v1.2-rc1~426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a4ddd0baa7c699b96d2590fd581dc4cf1374d7;p=thirdparty%2Ffreeswitch.git FSMOD-69 - mod_curl - use method=post when post requested --- diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c old mode 100755 new mode 100644 index 9081ca6094..4f6aefd313 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -272,6 +272,7 @@ SWITCH_STANDARD_APP(curl_app_function) } else if (!strcasecmp("get", argv[i]) || !strcasecmp("head", argv[i])) { method = switch_core_strdup(pool, argv[i]); } else if (!strcasecmp("post", argv[i])) { + method = "post"; if (++i < argc) { postdata = switch_core_strdup(pool, argv[i]); switch_url_decode(postdata);