how download page with curl? in Windows/cmd -
i have installed gnulinux windows , want download page curl
curl -o file3.htm -h user-agent: mozilla/5.0 (x11; u; linux i686; en-us; rv:1.9.1.8) gecko/20100214 ubuntu/9.10 (karmic) firefox/3.5.8 -h accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 -h accept-language: en-us,en;q=0.5 -h accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.7 -h keep-alive: 300 -h connection: keep-alive http://www.mygarden.com
my result like:
curl: (6) not resolve host: mozilla; host not found curl: (6) not resolve host: (x11;; host not found curl: (6) not resolve host: u;; host not found curl: (6) not resolve host: linux; host not found curl: (6) not resolve host: i686;; host not found curl: (6) not resolve host: en-us;; host not found curl: (6) not resolve host: rv:1.9.1.8); host not found
should place quotes somewhere?
you need quote various parameters passed -h
curl -o file3.htm -h "user-agent: mozilla/5.0 (x11; u; linux i686; en-us; rv:1.9.1.8) gecko/20100214 ubuntu/9.10 (karmic) firefox/3.5.8" -h "accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" -h "accept-language: en-us,en;q=0.5" -h "accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.7" -h "keep-alive: 300" -h "connection: keep-alive" http://www.mygarden.com also, don't need of those. try curl -o file3.htm http://www.mygarden.com
Comments
Post a Comment