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

3

1

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

Funtik

Posted 2010-10-04T05:38:38.267

Reputation:

Answers

1

how about:

xargs curl < FILE

SingleNegationElimination

Posted 2010-10-04T05:38:38.267

Reputation: 111

How to made this in Windows? – None – 2010-10-04T06:11:38.073

xargs is a unix command. You probably need to use Matthew Flaschen's answer if you're looking at a windows solution. – SingleNegationElimination – 2010-10-04T06:35:27.680

1

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.

Matthew Flaschen

Posted 2010-10-04T05:38:38.267

Reputation: 2 370

1

On Windows,

for /f "delims=" %%i in (FILE) do @curl "%%i"

user1686

Posted 2010-10-04T05:38:38.267

Reputation: 283 655