[asterisk-bugs] [JIRA] (ASTERISK-3093) [patch] Adds POSTing ability to new app_curl
Alexandre Keller (JIRA)
noreply at issues.asterisk.org
Mon Jul 13 09:52:25 CDT 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251410#comment-251410 ]
Alexandre Keller commented on ASTERISK-3093:
--------------------------------------------
I've been trying to use CURL with POSTDATA set as: --binary @file.wav
Example:
Set(POSTDATA=--data-binary @64.wav)
Set(X=${CURL(http://myAPI,${POSTDATA})})
but it is not working, any help?
> [patch] Adds POSTing ability to new app_curl
> --------------------------------------------
>
> Key: ASTERISK-3093
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-3093
> Project: Asterisk
> Issue Type: New Feature
> Components: Applications/General
> Attachments: 0003151-20041228__curl_post.diff.txt, 0003151-app_curl.diff.txt
>
>
> I desired the ability to POST with app_curl since our system relies on POST since it is more secure in a sense. This adds the ability to POST to a page and specify the arguments by doing Curl(url|postdata). If no arguments are specified, the application knows by default that the page will be retrieved via GET. You can still specify GET arguments in the URL.
> ****** ADDITIONAL INFORMATION ******
> Disclaimer on file.
> Not tested, but compiles sucessfully.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list