3
1
What's the equivalent of "wget -i FILE" in Curl?
3
1
What's the equivalent of "wget -i FILE" in Curl?
1
how about:
xargs curl < FILE
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.
1
On Windows,
for /f "delims=" %%i in (FILE) do @curl "%%i"
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