[asterisk-bugs] [JIRA] (ASTERISK-30088) func_curl: Subsequent calls are failing, can't clear headers

Sean Bright (JIRA) noreply at issues.asterisk.org
Thu Jun 16 10:45:49 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-30088:
-----------------------------------

    Status: Open  (was: Triage)

> func_curl: Subsequent calls are failing, can't clear headers
> ------------------------------------------------------------
>
>                 Key: ASTERISK-30088
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30088
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_curl
>    Affects Versions: 16.26.0
>         Environment: CentOS 7 x64
>            Reporter: Luke Escude
>
> I [mentioned this|http://lists.digium.com/pipermail/asterisk-dev/2022-May/078636.html] in the asterisk mailing list, but figured other people are likely running into the same issue.
> When altering HTTP headers to make a CURL call, those changes persist throughout the channel's lifespan. Therefore, you need to be careful/conscious of what headers, settings (like timeout), etc. are being set, otherwise subsequent CURL calls can cause weird problems.
> So, I believe there needs to be a CURL_RESET() function that sets ALL curl parameters to "factory default".



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



More information about the asterisk-bugs mailing list