Why does cURL return error “(23) Failed writing body”?
This happens when a piped program (e.g. grep) closes the read pipe before the previous program is finished writing the whole page. In curl “url” | grep -qs foo, as soon as grep has what it wants it will close the read stream from curl. cURL doesn’t expect this and emits the “Failed writing body” … Read more