cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: New User - How To FTP (Download) a EXE File

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Jul 2002 14:07:19 +0200 (MET DST)

On Thu, 25 Jul 2002, Tom Brokaw wrote:

> How do you download a file from an FTP site. I'm trying to find a way to
> automate anti-virus downloads from SYMANTEC's ftp site using AutoIT and
> cURL. All I get is gibberish and a locked up PC. It's as though the
> executable I'm trying to download is being read as a text file.
>
> Here's what I'm typing:
>
> curl -u anonymous:vitotelephono.juno.com
> ftp://ftp.symantec.com/public/english_us_canada/antivirus_definitions/norton_antivirus//0724i32.exe
>
> If I leave out the filename and I get a listing of the directory, so I know
> I'm getting to the site. What am I doing wrong? Any help will be greatly
> appreciated.

Append -O to get it saved to your local disk using the remote file name, or
use "-o localfilename.zip" to save in whatever name you please.

The gibberish you get is the file sent to your console!

-- 
  Daniel Stenberg -- curl groks URLs
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-07-29