Hello,
I just pushed a commit to master git branch adding the feature via a
modparam, however I didn't test it, therefore some assistance here will
be appreciated.
If all works ok, very likely that the commit can be cherry-picked on a
local clone of 5.3 branch and work fine on that version as well.
Not being the developer of the http_client module, I am not very
familiar with it and it seems that there is an alternative to set curl
lib options via a dedicated config file, that part was not enhanced. But
the http_query() function should work with the new modparam, if not
report it back and I will fix it.
Cheers,
Daniel
On 16.01.20 23:11, Fred Posner wrote:
On 1/16/20 4:56 PM, Daniel-Constantin Mierla wrote:
The libcurl seems to offer an option for that as
well:
-
https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html
So it can be a small patch to the module and support it in the future.
If you look for a solution on current stable, maybe one of the embedded
scripting languages can help, you can execute inline a small script in
Lua/Python/Perl with app_lua_run() & equivalents. In the past I used the
http client from lua to do more complex http api queries (e.g., with
specific headers, ...).
Cheers,
Daniel
Thank you Daniel,
I implemented a work around (little proxy in go) but would love if the
option was added for the future.
Fred Posner
fred(a)qxork.com
https://qxork.com
Direct/SMS: +1 (336) 439-3733
Need Fred? Call Fred. 336-HEY-FRED
Matrix: @fred:matrix.lod.com
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin --
www.kamailioworld.com