title: Ruby's Faraday - include the same param multiple times
body: <p>I'm working against an API that forces me to send the same parameter's name multiple times to cascade different filtering criteria. So a sample api GET call looks like this:</p>
  
  <pre><code>GET http://api.site.com/search?a=b1&amp;a=b2&amp;a=b3&amp;a=c2
  </code></pre>
  
  <p>I'm using Faraday for my REST adapter, which takes its URL parameters as a Hash (therefore - it has unique keys). This means I cannot do something like this:</p>
  
  <pre><code>response = Faraday.new({
    url: 'http://api.site.com/search'
    params: { a: 'b1', a: 'b2', a: 'b3', a: 'c2' } # =&gt; nay
  }).get
  </code></pre>
  
  <p>I tried to hack on the url right before the request is sent:</p>
  
  <pre><code>connection = Faraday.new(url: 'http://api.site.com/search')
  url        = connection.url_prefix.to_s
  full_url   = "#{ url }?a=b1&amp;a=b2&amp;a=b3&amp;a=c2"
  response   = connection.get( full_url )
  </code></pre>
  
  <p>Which did not work - when I debug the response I see that the actual url sent to the API server is:</p>
  
  <pre><code>GET http://api.site.com/search?a[]=b1&amp;a[]=b2&amp;a[]=b3&amp;a[]=c2
  </code></pre>
  
  <p>I have no way to change the API. Is there a way to keep working with Faraday and solve this in an elegant way? thanks.</p>