<div dir="ltr"><div><div><div><div>Hi Olle,<br><br></div>Thank you for clarification.<br><br></div>I tried function http_connect and still no user-agent.<br><br></div>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:<br><br>curl_easy_setopt(curl, CURLOPT_USERAGENT, "My user-agent");<br><br></div><div>With kind regards,<br></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Fri, Jun 17, 2016 at 9:48 AM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On 16 Jun 2016, at 12:05, Jurijs Ivolga <<a href="mailto:jurijs.ivolga@gmail.com" target="_blank">jurijs.ivolga@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Hi All,<br><br></div>I tried today new module http_client. I just made GET request using http_client_query in following way:<br><br>http_client_query("<a href="http://cool.api.com/" target="_blank">http://cool.api.com</a>", "$var(result)"); <br><div><div><br></div><div>It is working, but I can't see User-Agent in request. Below you can find my module options:<br><br>modparam("http_client", "useragent", "kamailio")<br>modparam("http_client", "connection_timeout", 1)<br><br></div><div>Is it a bug, or am I doing something wrong?<br></div></div></div></div></blockquote></div><br></span><div>That function works like the old http_query in utils. I should propably document that it’s limited.</div><div>Use the functions that use the connection structure to get full functionality.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/O</div></font></span></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>