title: Passing headers and query params in HTTparty
body: <p>How to pass query params and headers in post method using HTTparty. I am doing as follows
  But it throws </p>
  
  <pre><code>query = {:method =&gt; "neworder", :nonce =&gt; 1404996028, :order_type =&gt; "buy", :quantity=&gt;1,:rate=&gt;1}
  headers = {:key=&gt; "87819747209090199871234", :sign=&gt; "0a3888ac7f8e411ad73a0a503c55db70a291rsf34bfb9f9a47147d5200882674f717f6ede475669f3453"}
  
  HTTParty.post("https://www.acb.com/api/v2/market/LTC_BTC/", :query =&gt; query, :headers =&gt; headers )
  </code></pre>
  
  <p>But it throws the following error. How to handle query string params and headers with HTTparty.</p>
  
  <pre><code>/home/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/header.rb:172:in `capitalize': undefined method `split' for :key:Symbol (NoMethodError)
  from /home/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/header.rb:165:in `block in each_capitalized'
  from /home/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/header.rb:164:in `each'
  from /home/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/http/header.rb:164:in `each_capitalized'
  </code></pre>