Skip to content

Instantly share code, notes, and snippets.

@javier
Created December 18, 2009 11:02
Show Gist options
  • Save javier/259438 to your computer and use it in GitHub Desktop.
Save javier/259438 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'uri'
def _post(url, params)
url+="/" unless url =~ /\/$/
Net::HTTP.post_form(URI.parse(url),params)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment