J
Jedrin
Neither of the methods below are able to download this rpm file. If
you use firefox it works fine, how can I do this in ruby as part of a
install script I am trying to write in ruby ?
--------------------
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')
you use firefox it works fine, how can I do this in ruby as part of a
install script I am trying to write in ruby ?
--------------------
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')