Hello,
I am trying to debug an API. Towards the end of the process, the
remote server sends me a request. I respond to that request with:
render :text => my_response, :status => 200. I am trying to find out
how to read the remote server’s response.
So basically this is a three part cycle. How do I access the third
part?
- Remote Server sends a request
- I respond with text and a status of 200
- Remote Server responds with the results of the transaction.
How do I access this third response? I specifically would like to log
the body of the response so that I can read it and figure out what is
going on through the api calls.
Any help or direction would be greatly appreciated.
Thanks!