Keith Fahlgren wrote:

> You'll want to pass HTTP.new an address, not a URL:
> http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
> 
> Something like:
> require 'net/https'
> require 'uri'
> url = "https://127.0.0.1:7891/path/to/xml_interface"
> uri = URI.parse(url)
> http = Net::HTTP.new(uri.host, uri.port)
> http.use_ssl = true if (uri.scheme == 'https')
> data = "foo"
> headers = {'Content-Type' => 'text/xml'}
> # warning, uri.path will drop queries, use uri.path + uri.query if you need to
> resp, body = nex.post(uri.path, data, headers)
> 
> 
> HTH,
> Keith

That was silly of me. Thank you for the example and the doc pointer. I 
have it working now.