Topic: How to post xml files to another server?
I am about to do an app that is going to post xml files to another server. I have read the standard library documentation and found the net/http.rb with class net::HTTP to post form data to another server.
#1: Simple POST
res = Net::HTTP.post_form(URI.parse('http://www.example.com/search.cgi'),
But I have not found anny method for posting a file to another server. Is there annyone that has done this with xml,txt or anny other kind of file?
Im using linux, lightHttp and latest RoR version.