]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_curl.c: Support custom http headers
authorMartin Tomec <tomec.martin@gmail.com>
Thu, 7 Nov 2019 17:54:06 +0000 (17:54 +0000)
committerMartin Tomec <tomec.martin@gmail.com>
Fri, 15 Nov 2019 13:54:52 +0000 (13:54 +0000)
commitf032b8c1589071bc62d749d490b0dad6306e879b
treeb1429e6a9f604ca19a33bd15b95b38fb63e8600a
parent7a85a947af3d5e5ddb8b482a04b860c0bf597632
func_curl.c: Support custom http headers

When user wants to send json data, the default Content-Type header
is incorect (application/x-www-form-urlencoded). This patch allows
to set any custom headers so the Content-Type header can be
overriden. User can set multiple headers by multiple calls of
curlopt(). This approach is not consistent with other parameters,
but is more readable in dialplan than one call with multiple
headers.

ASTERISK-28613

Change-Id: I4dd68c3f4e25362ef941d73a3861f58348dcfbf9
doc/CHANGES-staging/func_curl_headers.txt [new file with mode: 0644]
funcs/func_curl.c