Hi. I’m using curl in my lua scripts as follows:
channel.CURLOPT(“httptimeout”):set(30)
result = channel.CURL(,):get() or “”
Is there a way to set the Content-Type header in asterisk to “text/xml” instead of “application/x-www-form-urlencoded”? I can’t seem to find any mention of it in the documentation.
[Edit]
Since it seems like this won’t work from within Asterisk, I ended up writing an AGI to sit between Asterisk and the external service.