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




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





Comments

Popular posts from this blog

Why we need to test the website on different browsers ?

Information on Code Analysis tool

Master degree (CS) VS Job