Closed arivictor closed 11 months ago
Ok, what I found that's not documented in CLI but is in the docs is I can filter like below to include everything, not just the body:
restish my-api get-thing -o json -f '@' > output.json
From there I can find my values.
I need to make a call to an endpoint to receive a CSRF token which gets sent back in the body. From this request I also need to retrieve a header
Set-Cookie
. For the life of me I cannot get both values from the single request.Running the command shows that both details are there, however there is no way to access both it seems. If I try and send the output to a file it only sends the body. If I try and filter to the header I lose the body. And I can only filter on one thing.
Using
-o json
and -v also yields nothing. What can I do?