[asterisk-bugs] [JIRA] (ASTERISK-30088) func_curl: Subsequent calls are failing, can't clear headers
Luke Escude (JIRA)
noreply at issues.asterisk.org
Tue May 31 09:32:49 CDT 2022
Luke Escude created ASTERISK-30088:
--------------------------------------
Summary: 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