]> 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 14:13:11 +0000 (09:13 -0500)
commitd579ec9cdf85ab31c1b7d9c8391d41b4ec513fc9
tree34d84bd6b7eecfd1053863fc80d7e2f4c5bd336b
parentd638d9c6c6b9ffe8feb0ee35466a6d884a5d04e4
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