From: pierre_b@... Date: 2003-06-04T19:07:28+09:00 Subject: Re: File retrieval problems --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 04, 2003 at 05:57:47PM +0900, kingsley@icecode.org wrote: > HI >=20 > I am struggling with how to do the following in Ruby: >=20 > go to a url > and download a zip file from the site to a location on my hard > drive >=20 > then unzip the file to a folder >=20 > I need to do this on a windows > platform. >=20 > I\'m guessing I should use try to use the HTTP module in some > way to do this? But I can\'t seem to work out how to grab the zip file > rather than an html page? > The unzipping I guess could be done with > system calls, unless Ruby has a way to unzip stuff? you can use rubyzip to access data in your zip files http://raa.ruby-lang.org/list.rhtml?name=3Drubyzip which depends on ruby-zlib http://raa.ruby-lang.org/list.rhtml?name=3Druby-zlib >=20 > All help greatly > appreciated >=20 > Kingsley >=20 --=20 Beno=EEt PIERRE =C9tudiant EPITA GISTR promo 2004 =2E-------------------------------------. [GnuPG FingerPrint] | Avoid the Gates of Hell. Use Linux | BDEE523CB7AE6D9DB4C0 |_____________________________________| 8B0288677E698B65CC35 --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+3cTviGd+aYtlzDURAl0MAJ4gm04PVS1vOyxksT+TGm0ujbG6YgCbBFo/ dPZ7eI7/qs9kDDZlraC92I0= =sma5 -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--