curl -b cookies.txt -c cookies.txt https://example.com

Category: Web App Development

curl -b cookies.txt -c cookies.txt https://example.com

Send and store cookies across requests

Loads cookies from cookies.txt with -b and saves any new ones with -c, simulating a browser session across multiple curl calls. Login first, then reuse the cookie jar for authenticated requests. Use -b 'name=value' to send a single cookie inline.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.