Posts

Showing posts with the label Advanced REST Client

How to set login Token and add a cookie to WebAPI request

Image
I have a scenario to test WebAPI call based on user login ."output" of the WebAPI call varies based on the user login. To test this scenario for WebAPI using Advanced REST Client (or PostMan REST client),need to follow below steps. In the headers, add X-CSRF-Token & its value for login  and if there are any cookie to set then use Cookie: as shown in below diagram