I need to send requests with different credentials: one user adds something, another approves.
The problem is that Postman saves somewhere authorization credentials and ignores new credentials that were sent via Authorization tab.
Any ideas?
I need to send requests with different credentials: one user adds something, another approves.
The problem is that Postman saves somewhere authorization credentials and ignores new credentials that were sent via Authorization tab.
Any ideas?
Hi @elag
Can you try closing the connection once you are done with user1?
This can be done by sending another request to the same endpoint with an extra header Connection: close
I have made a sample collection to demonstrate this. It has 4 requests
Hope this helps
–
Harendra
Thank you! It works!
Hi, can you please check the collection you added, I can not import it, it gives error.
Thanks.
Well thinking.
For new users of Postman, you can add this script in post response
pm.request.headers.remove('Connection');
pm.request.headers.add({key: 'Connection', value: 'close', system: true});
pm.sendRequest(pm.request);