LoginSignup
0
0

More than 1 year has passed since last update.

cookie の取得方法と curl で cookie を送信する方法

Last updated at Posted at 2022-06-21

はじめに

curl で cookie を送信する方法についてです。
example.jp への接続を想定してますが、各々の環境に合わせて変更してください。

cookie の取得

開発者ツール > Application > Cookies を展開して取得できます。
image.png

curl

-b オプションで cookie を送信する方法

curl -b "id=<cookie>; quiita=<cookie>;" "http://example.jp"

ヘッダーで cookie を指定して送信する方法

curl -H "Cookie: id=<cookie>; quiita=<cookie>;" "http://example.jp"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0