<div dir="ltr">Great thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 11:47 AM, Liviu Chircu <span dir="ltr">&lt;<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Andrey,<br>
      <br>
      You can place the unescaped string into a variable (e.g. &quot;$var&quot;),
      then use the {s.escape.user} transformation.<br>
      e.g.:<br>
          $var(query) = &quot;username=john
      smith&amp;password=hard,to#guess&quot;;<br>
          xlog(&quot;after: \&quot;$(var(query){s.escape.user})\&quot;\n&quot;);<br>
      <br>
          rest_get(<a href="http://localhost/?$(var(query)%7Bs.escape.user%7D)" target="_blank">&quot;http://localhost/?$(var(query){s.escape.user})&quot;</a>,
      ...);<br>
      <br>
      <br>
      (output)<br>
      after: &quot;username=john%20smith&amp;password=hard,to%23guess&quot;<br>
      <br>
      Best regards,<br>
    </tt>
    <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
    <div>On 15.09.2015 23:41, Andrey Vorobiev
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I try to use REST_CLIENT (OpenSIPS version 1.11) module in
          order perform HTTP GET request with params in URL query part.
          Some of parameters may contain space characters and need to be
          encoded according to <a href="http://www.w3schools.com/tags/ref_urlencode.asp" target="_blank">http://www.w3schools.com/tags/ref_urlencode.asp</a>.
          It seems that REST_CLIENT module doesn&#39;t encode specified URL.
          So what function or script transformation should I use in
          order to encode HTTP query params values?</div>
        <div><br>
        </div>
        -- <br>
        <div>Best regards.</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards.</div>
</div>