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.

add comment

3 Answers

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. –  TokenMacGuy Oct 4 '10 at 6:35
add comment

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
add comment

On Windows,

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

Your Answer

 
discard

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