curl http://192.168.253.7:8080/Example-1/restful/data/bulkUpload -H "API_KEY: se5ed3635ee24bb89dd72f" -H "TOKEN:1221231233" -F file=~/Desktop/Sample Import.xlsx
And it works fine through terminal.
I have above curl code and converted it to ruby code as follows:
require 'rest-client'
RestClient.post(url,
:file => File.new(file_path),
headers: {'API_KEY' => Settings.API_KEY, 'TOKEN' => Settings.TOKEN})
But still i am getting API _KEY is not in header response?
Am I missing something here?
Thanks.