title: How can I post xml data using net/http that also has data in the url
body: <p>I am working with an api that requires me to post xml to url such as someapi.com?userID=123.  Thus far, I have tried this (assume the xml is composed already in the xml variable):</p>
  
  <pre><code>url = URI.parse('http://www.someapi.com/process_leads.asp')
  request = Net::HTTP::Post.new(url.path)
  request.content_type = 'text/xml'
  request.body = xml
  request.set_form_data({'userID' =&gt; '1204'}, ';')
  response = Net::HTTP.start(url.host, url.port) {|http| http.request(request)}
  </code></pre>
  
  <p>I am trying to figure out if I can have the userID as form data but also post xml? I am basically supposed to post the xml to <a href="http://www.someapi.com/process_leads.asp?userID=1204" rel="nofollow">http://www.someapi.com/process_leads.asp?userID=1204</a>. Is that possible?</p>