curl -X POST -H "Content-Type:application/octet-stream" "http://example.com/api/v1/data?api_key=API_KEY" --data-binary "@json_file.json"
require 'net/http'
uri = URI('http://example.com/api/v1/data?api_key=API_KEY')
req = Net::HTTP::Post.new(uri)
req.body = File.read('json_file.json')
req.content_type = 'application/octet-stream'
res = Net::HTTP.start(uri.hostname, uri.port) {|http|
http.request(req)
}
`curl -X POST -H "Content-Type:application/octet-stream" "http://example.com/api/v1/data?api_key=API_KEY" --data-binary "@json_file.json"`