Has anyone posted xml data over a https connection? We have a vendor
product that has an API that allows for programmatic operation. Data is
exchanged in xml format. The exchange occurs over https. Any tips or
ideas would be appreciated. I can open https connection, but I’m not
sure how to post raw XML over the connections.
Has anyone posted xml data over a https connection? We have a vendor
product that has an API that allows for programmatic operation. Data is
exchanged in xml format. The exchange occurs over https. Any tips or
ideas would be appreciated. I can open https connection, but I’m not
sure how to post raw XML over the connections.
Just like with HTTP: set the content type to “text/xml” and send (post)
the data.
/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?