I understand how to make an http request using basic authentication with Ruby\'s rest-client
response = RestClient::Request.new(:method => :get, :url => @b
How about using a RestClient::Payload with RestClient::Request... For an example:
RestClient::Payload
RestClient::Request
request = RestClient::Request.new( :method => :post, :url => '/data', :user => @sid, :password => @token, :payload => { :multipart => true, :file => File.new("/path/to/image.jpg", 'rb') }) response = request.execute