How to debug/display request sent using RestClient

前端 未结 5 1417
执念已碎
执念已碎 2021-02-03 18:37

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

5条回答
  •  感动是毒
    2021-02-03 19:17

    If you're doing more of a REPL kind of development, it can be as easy as adding

    RestClient.log = 'stdout'
    

    to your code.

    You can find other valid values in the docs.

提交回复
热议问题