Re: [SR-Users] http_client module configuring User-Agent

2016-06-17 Thread Jurijs Ivolga
Hi Olle, Thank you for clarification. I tried function http_connect and still no user-agent. I'm not C programmer, but I checked code of module and I wasn't able to see anywhere that you are setting up user-agent like this: curl_easy_setopt(curl, CURLOPT_USERAGENT, "My user-agent"); With kind

Re: [SR-Users] http_client module configuring User-Agent

2016-06-16 Thread Olle E. Johansson
> On 16 Jun 2016, at 12:05, Jurijs Ivolga 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 s

Re: [SR-Users] http_client module configuring User-Agent

2016-06-16 Thread Jurijs Ivolga
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 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("ht

[SR-Users] http_client module configuring User-Agent

2016-06-16 Thread Jurijs Ivolga
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", "userage