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

link|improve this question
feedback

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

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

3 Answers

how about:

xargs curl < FILE
link|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. – TokenMacGuy Oct 4 '10 at 6:35
feedback

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.

link|improve this answer
feedback

On Windows,

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

Your Answer

 
or
required, but never shown