]> 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)
committerJoshua Colp <jcolp@digium.com>
Mon, 18 Nov 2019 11:54:06 +0000 (05:54 -0600)
commit37dcdd485a96e15ddcb5a0b49ffdca422a2a0592
treef630684c29f7b4151e351f561dbe2bb782408a13
parente7320bbbf002595e3244daa3dad3868bfdd30992
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