Return to Snippet

Revision: 3782
at September 13, 2007 15:58 by lmcdougall


Updated Code
uri = URI.parse(url)
req = Net::HTTP::Post.new(url)
req.set_form_data({
  \'field\' => \'value\'
  })
res = Net::HTTP.new(uri.host, uri.port).start { |http| http.request(req) }

Revision: 3781
at September 13, 2007 15:39 by lmcdougall


Initial Code
uri = URI.parse(url)
req = Net::HTTP::Post.new(url)
req.set_form_data({
  \'field\' => \'value\'
  })
res = Net::HTTP.new(uri.host, uri.port).start { |http| http.request(req) }

Initial URL

                                

Initial Description

                                

Initial Title
Post Data From Ruby

Initial Tags
textmate, post, ruby

Initial Language
Ruby