Skip to content

Instantly share code, notes, and snippets.

@krio
Created September 8, 2010 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krio/571070 to your computer and use it in GitHub Desktop.
Save krio/571070 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'uri'
postData = Net::HTTP.post_form(URI.parse('http://thewebsite.net'),
{'postKey'=>'postValue'})
puts postData.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment