Hello Experts,
I’ve been trying to use an example I found via a google search however I
cannot get it to work for the life of me. Please see my existing code vs
the example found. Examples are greatly appreciated
Example found:
RestClient::Request.execute(:method => :get, :url => url, :timeout =>
10, :open_timeout => 10)
my code:
RestClient.post(‘http://myip:port/upload/’,
:name_of_file_param =>
File.new(“C:\Users\Michael\Downloads\#{nfile}”))