New Features
- Clear Cookies for select requests from scripting #1379
- See updated
tc
API types file (v1.6.0)
- Update CLI to v1.8.1
Bug Fixes
- Fix - HTTP Headers (raw format) does not retain the unselected headers #1382
New API for Cookies
- We are adding a new API to manage cookies from scripting
Get Cookies
// get all cookies in store
var list = await tc.getCookies();
// get all cookies for current url
var listDomain = await tc.getCookies("url");
var listDomain = await tc.getCookies(tc.request.url);
Clear Cookies
// clear all cookies in store
await tc.clearCookies();
// clear all cookies for current domain
await tc.clearCookies("url");
await tc.clearCookies(tc.request.url);
// clear single cookie by name of cookie
await tc.clearCookies(tc.request.url, "cookieName");
Set Cookie
// set cookie for current url
await tc.setCookie("https://www.thunderclient.com", "cookieName", "cookieValue");
await tc.setCookie(tc.request.url, "cookieName", "cookieValue");