curl for Windows – the somewhat different “cronjob”

curl for Windows – the somewhat different “cronjob”

Since Windows 10, curl is included in Windows by default. This opens the possibility to also call e.g. scripts or other URLs directly from the Windows command line.

An example call where the output is stored would look like this:

curl.exe --output index.html --url https://www.example.com

A call where the output is not saved only needs to be shortened:

curl.exe --url https://www.example.com

Especially in batch scripts, the many uses and options of curl under Windows can be very helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *