title: How to tell a curl max-time apart from a connect-timeout?
body: <p>Example command</p>
  
  <pre><code>curl -s -w "%{http_code} %{http_connect}" --connect-timeout 10 --max-time 50
  </code></pre>
  
  <p>Will return <code>000 000</code> for both the connect-timeout being reached and the max-time being reached. What is the best way to tell these two errors apart?</p>
  
  <p>The only difference, as far as I can see, is when the <code>-s</code> flag is removed:</p>
  
  <ul>
  <li>Connection timeout returns <code>curl: (28) connect() timed out</code> and</li>
  <li>Max timeout returns <code>curl: (28) Operation timed out</code></li>
  </ul>