J
Jedrin
not sure why neither of these ways to download an rpm from ruby don't
work, but
if I use a web broswer on the same url there's no problem ..
-------------------------------
require 'net/http'
Net::HTTP.start("apt.sw.be") { |http|
resp = http.get("/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-
release-0.3.6-1.el5.rf.x86_64.rpm")
open("postgis.rpm", "wb") { |file|
file.write(resp.body)
}
}
open('http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-
release-0.3.6-1.el5.rf.x86_64.rpm')
work, but
if I use a web broswer on the same url there's no problem ..
-------------------------------
require 'net/http'
Net::HTTP.start("apt.sw.be") { |http|
resp = http.get("/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-
release-0.3.6-1.el5.rf.x86_64.rpm")
open("postgis.rpm", "wb") { |file|
file.write(resp.body)
}
}
open('http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-
release-0.3.6-1.el5.rf.x86_64.rpm')