2

I would like to have cookie of a HTTPS site. I do have credential and certificate to access given site.

If I access site from chrome/firefox then I can easily extract cookie but what is the way to have this cookie from command line by using curl,wget or similar CUI-based tools ?

SHW
  • 14,454
  • 14
  • 63
  • 101

1 Answers1

4

Try this out:

curl -c - '<website>'
  • -c flag is to retrieve the cookie
ryekayo
  • 4,705
  • 9
  • 41
  • 66