[SR-Users] http_client module configuring User-Agent
Olle E. Johansson
oej at edvina.net
Fri Jun 17 08:48:55 CEST 2016
> On 16 Jun 2016, at 12:05, Jurijs Ivolga <jurijs.ivolga at gmail.com> wrote:
>
> Hi All,
>
> I tried today new module http_client. I just made GET request using http_client_query in following way:
>
> http_client_query("http://cool.api.com <http://cool.api.com/>", "$var(result)");
>
> It is working, but I can't see User-Agent in request. Below you can find my module options:
>
> modparam("http_client", "useragent", "kamailio")
> modparam("http_client", "connection_timeout", 1)
>
> Is it a bug, or am I doing something wrong?
That function works like the old http_query in utils. I should propably document that it’s limited.
Use the functions that use the connection structure to get full functionality.
/O
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160617/ca25a658/attachment.html>
More information about the sr-users
mailing list