kyle972
asked on
Perl Script to Download Files
I need a perl script to download this file and save it to a directory on my computer.
ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.2010111800/gfs.t00z.pgrbf00.grib2
the file also exists as an http:
http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2010111800/gfs.t00z.pgrbf00.grib2
I am behind a corporate proxy that uses an automatic configuration script which complicates the file download somewhat.
Any solutions?
ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.2010111800/gfs.t00z.pgrbf00.grib2
the file also exists as an http:
http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2010111800/gfs.t00z.pgrbf00.grib2
I am behind a corporate proxy that uses an automatic configuration script which complicates the file download somewhat.
Any solutions?
ASKER
Thanks for the reply.
However, the file becomes unusable to me when reading in and then outputting it. I need to save the file like you would if you were downloading it from a browser. I can't lose the special formatting in this file.
I just need to save it. No reading or writing to another file.
Any other ideas?
However, the file becomes unusable to me when reading in and then outputting it. I need to save the file like you would if you were downloading it from a browser. I can't lose the special formatting in this file.
I just need to save it. No reading or writing to another file.
Any other ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works perfect. Thanks
Please change the proxy settings of course
And I used a smaller file to test the download:
Open in new window