title: Why does cURL return error "(23) Failed writing body"?
body: <p>It works ok as a single tool:</p>
  
  <pre><code>curl "someURL"
  curl -o - "someURL"
  </code></pre>
  
  <p>but it doesn't work in a pipeline:</p>
  
  <pre><code>curl "someURL" | tr -d '\n'
  curl -o - "someURL" | tr -d '\n'
  </code></pre>
  
  <p>it returns:</p>
  
  <pre><code>(23) Failed writing body
  </code></pre>
  
  <p>What is the problem with piping the cURL output? How to buffer the whole cURL output and then handle it?</p>