LoginSignup
13
9

More than 5 years have passed since last update.

curlでタイムアウトを設定する方法

Last updated at Posted at 2018-12-27

タイムアウトを2秒に設定する場合

command.sh
curl -m 2 -o output https://example.com

デフォルトは300秒です。ソース:https://github.com/curl/curl/blob/master/lib/connect.h

13
9
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
13
9