1
I am running the command
curl -O "http://www.*site*.com/[1-9].png"
but the download is failing. - the output is as follows
[1/10]: http://www.*site*.com/1http://w --> 1.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 531 0 531 0 0 1618 0 --:--:-- --:--:-- --:--:-- 1618
and the file 1.png has the following html:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body><script type="text/javascript">//<![CDATA[try{(function(a){var b="http://",c="www.*site*.com",d="/cdn-cgi/cl/",e="img.gif",f=new a;f.src=[b,c,d,e].join("")})(Image)}catch(e){}//]]></script>
<h1>Not Found</h1>
<p>The requested URL /1http://w was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
looks like it is repeating the address at the end of the request - not sure why
Running the command for each file one at a time works
curl -O "http://www.*site*.com/1.png"
note I have also tried
curl "http://www.*site*.com/[1-9].png" -o "#1.ext"
so Its not the -O option.
1
try with xargs along with curl
– Renju Chandran chingath – 2014-06-22T06:18:44.233