>_ IzzyLab

Topic breakdown

curl has a -w/--write-out mechanism: after a request it substitutes the values of internal variables describing the transaction. Besides the response code, metrics like the number of downloaded body bytes are available. The body itself isn't needed here — it's sent to /dev/null, and the progress bar is silenced with quiet mode, leaving only the desired number on output.

What's checked

  1. body size matches the file

What it looks like