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

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Tue May 31 11:56:49 CDT 2022


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

Kevin Harwell commented on ASTERISK-30088:
------------------------------------------

Please add dialplan/config and steps to reproduce. As well a description of the expected output vs. actual output (weird problems).

Also please attach an Asterisk debug/verbose log of the scenario.

Thanks!

> 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 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