1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

curlで複数同時に送信するコマンド

Last updated at Posted at 2022-04-27

例えば https://hogehoge.com に対して、200個のGETを同時に送信したい場合、

$ seq 1 200 | xargs -P 200 -I {} curl "https://hogehoge.com" -o /dev/null -w '%{http_code}\n' -sS

ただし、みだりに送信し過ぎると攻撃とみなされるので注意しましょう。
(自身が管理しているサーバー宛なら大丈夫ですが)

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?