Gregory Brown
7/30/2008 5:47:00 PM
On Wed, Jul 30, 2008 at 1:30 PM, Mateusz Tybura <wujciol@gmail.com> wrote:
> Hello,
>
> I'm learning Ruby for some time. Today I started to write simple code
> which will download specified files from specified servers but it
> doesn't work. It always showing me error 500 when code is going to
> download file. This is code:
I didn't find out why your code doesn't work, but using open-uri from
the stdlib works, and might be nicer:
>> require "open-uri"
=> true
>> puts open("ftp://anonymous:anon@sunsite.icm.edu.pl/pub/Linux/slackware/slackware-12.0/CHECKSUMS.md5.asc").read
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAkiPY8sACgkQakRjwEAQIjOctwCggx3kItwUmkXNFmhUko2M9jxd
2v8AnjfTZFeZbJlQZ3Pb8UTtkbq3df8m
=lKsD
-----END PGP SIGNATURE-----