LoginSignup

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 3 years have passed since last update.

curl

Posted at

できること

  • 指定したURLのデータを標準出力に表示する

基本構文

$ curl $URL

よく使う構文

よく使うオプション

プログレスバーを非表示にする

$ curl -s

ユーザー名とパスワードを指定

$ curl -u $username:$password

リダイレクトを自動でフォロー

$ curl -L

ヘッダのみ表示

$ curl --head

想定しない挙動の場合にヘッダのステータスコードを確認する場合に使用

その他

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