[SR-Users] http_client module configuring User-Agent

Jurijs Ivolga jurijs.ivolga at gmail.com
Thu Jun 16 16:16:05 CEST 2016


Hi,

It looks like this is a bug. I created pull request with a fix.

With kind regards,

Jurijs

On Thu, Jun 16, 2016 at 1:05 PM, 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", "$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?
>
> Thank you!
>
> Jurijs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160616/623c32ed/attachment.html>


More information about the sr-users mailing list