Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created September 1, 2012 17:35
Show Gist options
  • Save nuke99/b483bdab8a5fc1752be3 to your computer and use it in GitHub Desktop.
Save nuke99/b483bdab8a5fc1752be3 to your computer and use it in GitHub Desktop.
require "uri"
require "net/http"
params = {:parameters=>"id=1&base=v&set=core"}
x = Net::HTTP.post_form(URI.parse('http://localhost/index.php'), params[:parameters])
puts x.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment