I understand how to make an http request using basic authentication with Ruby\'s rest-client
response = RestClient::Request.new(:method => :get, :url => @b
Here is an example with a file and some json data:
require 'rest-client' payload = { :multipart => true, :file => File.new('/path/to/file', 'rb'), :data => {foo: {bar: true}}.to_json } r = RestClient.post(url, payload, :authorization => token)