From: brad Date: 2007-08-15T22:35:02+09:00 Subject: Re: post xml over https connection Robert Klemme wrote: > Just like with HTTP: set the content type to "text/xml" and send (post) > the data. > > Kind regards > > robert Perhaps I'm doing something wrong. Here's what I'm trying: nex = Net::HTTP.new("https://127.0.0.1", port) nex.use_ssl = true path = '/path/to/xml_interface/' headers = {'Content-Type' => 'text/xml'} resp, data = nex.post(path, data, headers) I get this error: /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/ruby/1.8/net/http.rb:560:in `open' from /usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /usr/lib/ruby/1.8/timeout.rb:48:in `timeout' from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout' from /usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start' from /usr/lib/ruby/1.8/net/http.rb:542:in `start' from /usr/lib/ruby/1.8/net/http.rb:1032:in `request' from /usr/lib/ruby/1.8/net/http.rb:842:in `post' The code works up until the actual post attempt. Any ideas?