From: Gregory Brown Date: 2008-07-31T02:46:41+09:00 Subject: Re: My simple downloader doesn't work On Wed, Jul 30, 2008 at 1:30 PM, Mateusz Tybura 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-----