user3458634
user3458634

Reputation: 1

how to use a variable (read from a file) for url in curl using batch script for windows?

curl -I -H "Cache-control: no-cache" -w 'a' ) www.google.com url: www.youtube.com curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information

Upvotes: 0

Views: 500

Answers (1)

MC ND
MC ND

Reputation: 70941

for /f "delims=" %%u in (file.txt) do curl "%%u"

Upvotes: 1

Related Questions