Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Oct 4 '10 at 11:12

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

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 = ""

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

You must log in to answer this question.