Using Net::HTTP to send data to another server

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('Example Domain’) 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