Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What's the equivalent of "wget -i FILE" in Curl?

share|improve this question

migrated from stackoverflow.com Oct 4 '10 at 11:12

This question came from our site for professional and enthusiast programmers.

3 Answers 3

how about:

xargs curl < FILE
share|improve this answer
How to made this in Windows? –  Funtik Oct 4 '10 at 6:11
xargs is a unix command. You probably need to use Matthew Flaschen's answer if you're looking at a windows solution. –  SingleNegationElimination Oct 4 '10 at 6:35

Token's approach is the simplest. However, curl also has a -K option for a config file. You can specify one or more URLs like:

url = "curl.haxx.se"

This can be convenient because it also allows you to set all of the other curl command-line options. E.g.

output = "curlhere.html"
user-agent = "superagent/1.0"

See the man page for more examples.

share|improve this answer

On Windows,

for /f "delims=" %%i in (FILE) do @curl "%%i"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.