coost is a cookie storage module for reading, writing and importing cookie jars.
To import browser session cookies (instructions for Google Chrome, should work for any browser):
- Launch a browser, then open Developer Tools: a. Select "Customize and control Google Chrome" menu item, visually represented as three vertical dots; b. Select "More Tools" menu item, then "Developer Tools"; c. Select "Network" tab in the Developer Tools.
- Navigate to the desired website (e.g.
example.com); - Select that navigation request in the Network tab of Developer Tools;
- Select "Headers" tab in the request preview section;
- Navigate to the
Request Headerssection (notResponse Headers!); - Find
cookie:header andCopy valuefor that header (or select the value and copy); - In application that uses
coost- runimport-cookiescommand with a cookie header value:import-cookies "key1=value1; key2=value2;"