Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Net::HTTP.get(...) not working (still)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Lady Michelle Bhaal, post: 4493249"] Now that I've got my DNS back, I'm still getting the same basic error I had last time around, complaining: undefined method 'line' Help? --- def fromWeb(site, url) # get data from website h = Net::HTTP.new(site, 80) resp=h.get(url) do # process data |line| if /DGM_navigation/ =~ line do # decode page lineage step=Array.new astep, line = getNextWord(line) while astep != nil step.push(astep) astep, line = getNextWord(line) end puts "Page Lineage" indent = 0 step.each do |astep| indent.each do put " " end puts astep indent += 1 end end # end DGM_naviation end # end Net::HTTP.get end # end def fromWeb [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Net::HTTP.get(...) not working (still)
Top