我正在try 使用RestClient通过post方法访问Web服务.我正在按照指定的方式发送授权令牌,但我仍然收到403状态错误,这意味着我被禁止使用该api.有没有什么方法可以让我看到请求是通过http post发送的,这样我就可以验证头了?我找不到任何例子或任何文件提到如何做到这一点?
我的代码与此类似:
token = get_token
response = RestClient.post "https://api-dev.xxx.com/software/services/search/ABC",
:authorization => "Bearer #{token}"