I understand how to make an http request using basic authentication with Ruby\'s rest-client
response = RestClient::Request.new(:method => :get, :url => @b
The newest best way may be that: the link is enter link description here
RestClient.post( url, { :transfer => { :path => '/foo/bar', :owner => 'that_guy', :group => 'those_guys' }, :upload => { :file => File.new(path, 'rb') } })