I would like to use NET::HTTP to POST an xml file to a site. I am having
some difficulties getting it to work. I know the remote site works as
people using Java reported it working fine.
I have the following segment:
uri = URI.parse(“http://mywebsite.com:7080/CardReader”)
http = Net::HTTP.new(uri.host, uri.port)
myData = "<?xml version="1.0" encoding="UTF-8"?>
How do I send (POST) that data (myData) to the URL list above?