Team,
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
other
people using Java reported it working fine.
I have the following segment:
require ‘net/http’
require ‘uri’
uri = URI.parse(“http://mywebsite.com:7080/CardReader”)
http = Net::HTTP.new(uri.host, uri.port)
myData = "<?xml version="1.0" encoding="UTF-8"?>
0
00000000-0000-0000-0000-000000000000
"
QUESTION:
How do I send (POST) that data (myData) to the URL list above?
Thank you