mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-06 15:39:06 +00:00
FSMOD-69 - mod_curl - use method=post when post requested
This commit is contained in:
parent
3e2056833b
commit
c6a4ddd0ba
1
src/mod/applications/mod_curl/mod_curl.c
Executable file → Normal file
1
src/mod/applications/mod_curl/mod_curl.c
Executable file → Normal file
@ -272,6 +272,7 @@ SWITCH_STANDARD_APP(curl_app_function)
|
|||||||
} else if (!strcasecmp("get", argv[i]) || !strcasecmp("head", argv[i])) {
|
} else if (!strcasecmp("get", argv[i]) || !strcasecmp("head", argv[i])) {
|
||||||
method = switch_core_strdup(pool, argv[i]);
|
method = switch_core_strdup(pool, argv[i]);
|
||||||
} else if (!strcasecmp("post", argv[i])) {
|
} else if (!strcasecmp("post", argv[i])) {
|
||||||
|
method = "post";
|
||||||
if (++i < argc) {
|
if (++i < argc) {
|
||||||
postdata = switch_core_strdup(pool, argv[i]);
|
postdata = switch_core_strdup(pool, argv[i]);
|
||||||
switch_url_decode(postdata);
|
switch_url_decode(postdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user