How do I determine the maximum curl period other than connection timeout?

Example command

curl -s -w "%{http_code} %{http_connect}" --connect-timeout 10 --max-time 50

      

Will return 000 000

to reach connection timeout and maximum timeout. What is the best way to communicate these two errors?

The only difference, as far as I can see, is when the flag is -s

removed:

  • Connection timeout returns curl: (28) connect() timed out

    and
  • Maximum waiting time curl: (28) Operation timed out

+3


source to share





All Articles