I understand how to make an http request using basic authentication with Ruby\'s rest-client
response = RestClient::Request.new(:method => :get, :url => @b
RestClient API seems to have changed. Here's the latest way to upload a file using basic auth:
response = RestClient::Request.execute( method: :post, url: url, user: 'username', password: 'password', timeout: 600, # Optional payload: { multipart: true, file: File.new('/path/to/file, 'rb') } )