[asterisk-bugs] [JIRA] (ASTERISK-28613) func_curl: CURLOPT cannot set Content-Type header

Martin Tomec (JIRA) noreply at issues.asterisk.org
Mon Apr 20 08:40:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250423#comment-250423 ] 

Martin Tomec commented on ASTERISK-28613:
-----------------------------------------

Hi Thomas,
I think that the curl object is created new for each request from IVR so this solution was "enougth good" for our usecase. Of course it can have some limitations and any new patches are welcome.

> func_curl: CURLOPT cannot set Content-Type header
> -------------------------------------------------
>
>                 Key: ASTERISK-28613
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28613
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Functions/func_curl
>    Affects Versions: 13.29.1
>            Reporter: Martin Tomec
>            Assignee: Martin Tomec
>            Severity: Minor
>      Target Release: 13.30.0, 16.7.0, 17.1.0
>
>
> For sending JSON requests, CURLOPT should be able to set Content-Type header. There is demand for it:
> https://asteriskfaqs.org/2018/10/04/asterisk-users/curl-to-post-applicationjson.html
> I have prepared patch for http headers parameter setting.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list