title: Ruby Curb (Curl) issue with setting parameters and cookies
body: <p>I've got a series of rather large arrays of entries that I want to post into a remote Jira instance's custom fields, so I'm trying to do it with Curb under Ruby (as their API doesn't allow it, and under SQL it's a bit of a dangerous munge)
  I'm open to other suggestions, but I can't for the life of me work out how I can set my cookies with my initial get request, then provide the parameters and appropriate headers for the post</p>
  
  <pre><code>c = Curl::Easy.new("http://jira/secure/Dashboard.jspa")
  c.verbose = true
  c.http_auth_types = :basic
  c.username = 'user'
  c.password = 'pass'
  c.perform
  c.headers="X-Atlassian-Token: no-check"
  params=    {:fieldConfigId=&gt;'13499',:selectedParentOptionId=&gt;'',:addSelectValue=&gt;'true',:os_username=&gt;'user',:os_password=&gt;'pass',:addValue=&gt;'Barry the Badger',:add=&gt;'Add'}
  url="http://jira/secure/admin/EditCustomFieldOptions!add.jspa"
  c.http_post(url,params)
  c.perform
  </code></pre>
  
  <p>It looks like it's still using the same URL
  I've tried using rest_client, but that seems to be misbehaving with cookies, and I do need to set the header above for the atlassian token (so it doesn't request a username/password)
  Has anyone got any ideas - or suggestions on what better mechanisms there might be for doing this - or better yet - what I've done wrong ;)
  Cheers
  Scott</p>