T
travis laduke
please?
#from the api on ruby-doc.org. http://www.ruby-doc.org/stdlib/libdoc/
net/http/rdoc/classes/Net/HTTP.html
require 'net/http'
require 'uri'
#1: Simple POST
res = Net::HTTP.post_form(URI.parse('http://www.example.com/
search.cgi'),
{'q'=>'ruby', 'max'=>'50'})
puts res.body
5: undefined method `post_form' for Net::HTTP:Class (NoMethodError)
am i missing something here? if it matters, my OS is Tiger... ruby
1.8.2 (2004-12-25) [powerpc-darwin8.2.0]
alternatively, how to you make Mechanize work from inside rails? i'm
trying to screen scrape a table from another site then load the
information back on my page.
why does time fly so fast when i'm stuck on something?
travid
#from the api on ruby-doc.org. http://www.ruby-doc.org/stdlib/libdoc/
net/http/rdoc/classes/Net/HTTP.html
require 'net/http'
require 'uri'
#1: Simple POST
res = Net::HTTP.post_form(URI.parse('http://www.example.com/
search.cgi'),
{'q'=>'ruby', 'max'=>'50'})
puts res.body
5: undefined method `post_form' for Net::HTTP:Class (NoMethodError)
am i missing something here? if it matters, my OS is Tiger... ruby
1.8.2 (2004-12-25) [powerpc-darwin8.2.0]
alternatively, how to you make Mechanize work from inside rails? i'm
trying to screen scrape a table from another site then load the
information back on my page.
why does time fly so fast when i'm stuck on something?
travid