See sent request with rest client

552 Views Asked by At

How can I see the complete HTTP request sent with REST client? I didn't find it in the doc... https://github.com/rest-client/rest-client

What I want to see is something like: "https://mysite.com?param1=sthg"

1

There are 1 best solutions below

0
On

Check rest client logging in docs

To enable logging you can

set RestClient.log with a ruby Logger or set an environment variable to avoid modifying the code (in this case you can use a file name, “stdout” or “stderr”):

$ RESTCLIENT_LOG=stdout path/to/my/program