/ Published in: Ruby
Expand |
Embed | Plain Text
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.

Even simpler ;)
Link
require 'open-uri' print open('http://www.domain.com/path/page.rhtml').read