I am trying to use RestClient to access a webservice using post method. I am sending the authorization token as specified but I am still getting a 403 status error which means I
You can also get the request from the exception:
def bla(token) response = RestClient.post "https://api-dev.xxx.com/software/services/search/ABC", :authorization => "Bearer #{token}" rescue RestClient::Exception => e @logger.error "#{e.response.request.inspect}" end