Published in: Ruby
require \'net/http\' Net::HTTP.start(\'www.domain.com\', 80) { |http| print( http.get(\'/path/page.rhtml\').body ) }
Comments
Subscribe to comments
You need to login to post a comment.
Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.
richardleonard on 12/31/69
16 people have marked this snippet as a favorite
daniel
talaris
codesmith
jonbaer
jpb
idiotkings
yuconner
fortuity
shazburg
Hollow
gbvb
vali29
copyleft
tkmr
Netzach
skammer
Published in: Ruby
require \'net/http\' Net::HTTP.start(\'www.domain.com\', 80) { |http| print( http.get(\'/path/page.rhtml\').body ) }
Subscribe to comments
You need to login to post a comment.
Even simpler ;)
Link
require 'open-uri' print open('http://www.domain.com/path/page.rhtml').read