<p>@@ -56,6 +56,7 @@ typedef struct {<br>
     char *cacert;<br>
     char *ciphersuites;<br>
     char *http_proxy;</p>

<ul>
<li><p>char <em>useragent;<br>
 unsigned int authmethod;<br>
 unsigned int http_proxy_port;<br>
 unsigned int tlsversion;<br>
@@ -206,6 +207,7 @@ static int curL_query_url(struct sip_msg</em> _m, const char* _url, str* _dst, const<br>
 res |= curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_function);<br>
 res |= curl_easy_setopt(curl, CURLOPT_WRITEDATA, &stream);</p></li>
<li>
<p>res |= curl_easy_setopt(curl, CURLOPT_USERAGENT, params->useragent);</p>

<p>if (res != CURLE_OK) {<br>
    /* PANIC <em>/<br>
@@ -379,6 +381,7 @@ int curl_con_query_url(struct sip_msg</em> _m, const str <em>connection, const str</em> url<br>
    query_params.cacert = default_tls_cacert;<br>
    query_params.ciphersuites = conn->ciphersuites;<br>
    query_params.tlsversion = conn->tlsversion;</p>
</li>
<li>       query_params.useragent = conn->useragent;
    query_params.verify_peer = conn->verify_peer;
    query_params.verify_host = conn->verify_host;
    query_params.timeout = conn->timeout;</li>
</ul>

<p>This code make  http_connect to send user_agent. Not sure if this is correct. :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/674#issuecomment-226725634">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36Zch089uTllsoRQ6rIyhQtAjxLHhXks5qMmrCgaJpZM4I3Xe4">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZyAG2rV6fd2EXJcAhudV58OMwF6ks5qMmrCgaJpZM4I3Xe4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/674#issuecomment-226725634"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>