Help us understand the problem. What is going on with this article?

curlでよく使うオプションメモ

More than 1 year has passed since last update.

よく使うわりにいつも忘れるcurlのオプション。

メソッドを指定

curl -X "POST" https://...

Xオプション

オレオレ証明の警告無視

curl -k https://...

kオプション

Cookie埋める

curl -b name=value https://...

bオプション

複数個送りたい時はbを複数書くのではなく

curl -b 'name=value&name2=value2' https://...

という感じにする。

リダイレクトに追従

curl -L https://...

Lオプション

ヘッダを見る

curl --head https://...

これだとヘッダだけが出力される

curl --include https://...

こうするとヘッダも含めて出力される

mogamin3
fringe81
Fringeは、最新のテクノロジーとプロフェッショナルによるサービスにより、社会課題に仮説を立てて市場に広げていくことで、数十年という長期的なスパンで価値を生み出し続け、より良い世界を創る集団です。 既存の領域に限らず、時流を読み、仮説を生み出し、テクノロジーの力で優れたサービスを生み出し続けます。
https://www.fringe81.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした