cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Download a file

From: Aleksandar Lazic <al-curlusers_at_none.at>
Date: Fri, 28 Dec 2007 11:50:26 +0100

On Fre 28.12.2007 10:22, Yedidi, Santhosh wrote:
>I am trying to download a pdf file
>
>http://www.krishnamedia.org/e-books/Bhagavad-gita_As_It_Is.pdf
>
>I have used the command curl -v
>http://www.krishnamedia.org/e-books/Bhagavad-gita_As_It_Is.pdf
>
>But I am unable to download
>
>How can I download

Take a look at http://curl.haxx.se/docs/manpage.html

---
.
.
.
-o/--output <file>
Write output to <file> instead of stdout. If you are using {} or [] to
fetch multiple documents, you can use '#' followed by a number in the
<file> specifier. That variable will be replaced with the current string
for the URL being fetched. Like in:
   curl http://{one,two}.site.com -o "file_#1.txt"
or use several variables like:
   curl http://{site,host}.host[1-5].com -o "#1_#2"
You may use this option as many times as you have number of URLs.
See also the --create-dirs option to create the local directories
dynamically.
-O/--remote-name
Write output to a local file named like the remote file we get. (Only
the file part of the remote file is used, the path is cut off.)
The remote file name to use for saving is extracted from the given URL,
nothing else.
You may use this option as many times as you have number of URLs. 
.
.
.
---
BR
Aleks
Received on 2007-12-28