How do I copy cookies from Chrome?

后端 未结 4 1201
故里飘歌
故里飘歌 2020-12-23 02:01

I am using bash to to POST to a website that requires that I be logged in first. So I need to send the request with login cookie. So I tried logging in and keeping the cooki

4条回答
  •  醉酒成梦
    2020-12-23 02:20

    In Chrome:

    • Open web developer tools (view -> developer -> developer tools)
    • Open the Application tab (on older versions, Resources)
    • Open the Cookies tree
    • Find the cookie you are interested in.

    In the terminal

    • add --cookie "cookiename=cookievalue" to your curl request.

提交回复
热议问题