Hey all, I have a form, when it posts, if it fails, it sends a response back to the client. Now I want to take the response data and then send it to a wordpress blog for the wordpress to handle it. I already set up the rails app as a proxy to the wordpress blog when a certain page is invoked. My question is regarding Net::HTTP.
I'm wondering if I should be using get with dynamic parameters: uri = URI('http://example.com/index.html') params = { :limit => 10, :page => 3 } uri.query = URI.encode_www_form(params) res = Net::HTTP.get_response(uri) puts res.body if res.is_a?(Net::HTTPSuccess) Or a post: uri = URI('http://www.example.com/search.cgi') res = Net::HTTP.post_form(uri, 'q' => 'ruby', 'max' => '50') puts res.body thanks for response -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.