title: Can Karate generate multiple query parameters with the same name?
body: <p>I need to pass multiple query parameters with the same name in a URL, but I am having problems getting it to work with Karate.  In my case, the URL should look like this:  </p>
  
  <p><a href="http://mytestapi.com/v1/orders?sort=order.orderNumber&amp;sort=order.customer.name,DESC" rel="nofollow noreferrer">http://mytestapi.com/v1/orders?sort=order.orderNumber&amp;sort=order.customer.name,DESC</a></p>
  
  <p>Notice 2 query parameters named "sort".  I attempted to create these query string parameters with Karate, but only the last "sort" parameter gets created in the query string.  Here are the ways I tried to do this:</p>
  
  <pre><code>Given path 'v1/orders'
      And param sort = 'order.orderNumber'
      And param sort = 'order.customer.name,DESC'
      And header Authorization = authInfo.token
      And method get
      Then status 200
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>Given path 'v1/orders'
      And params sort = { sort: 'order.orderNumber', sort: 'order.customer.name,DESC' }
      And header Authorization = authInfo.token
      And method get
      Then status 200
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>    Given path 'v1/order?sort=order.orderNumber&amp;sort=order.customer.name,DESC'
      And header Authorization = authInfo.token
      And method get
      Then status 200
  </code></pre>
  
  <p>The first two ways provide the same query string result: <code>?sort=order.customer.name%2CDESC</code></p>
  
  <p>The last example does not work because the ? get encoded, which was expected and explained in this post - <a href="https://stackoverflow.com/questions/45422335/karate-api-tests-escaping-in-the-url-in-a-feature-file">Karate API Tests - Escaping &#39;?&#39; in the url in a feature file</a></p>
  
  <p>It's clear that the second "sort" param is overriding the first and only one parameter is being added to the URL.  I have gone through the Karate documentation, which is very good, but I have not found a way to add multiple parameters with the same name.</p>
  
  <p>So, is there a way in Karate to set multiple URL query parameters with the same name?</p>