Skip to content

Instantly share code, notes, and snippets.

@linuxsable
Created August 15, 2010 21:18
Show Gist options
  • Select an option

  • Save linuxsable/525960 to your computer and use it in GitHub Desktop.

Select an option

Save linuxsable/525960 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'net/http'
# This fails
Thread.new {
uri = URI.parse('http://postbin.heroku.com/3v')
Net::HTTP.post_form(uri, {'data'=> 'fail'})
}
# This works
# uri = URI.parse('http://postbin.heroku.com/3v')
# Net::HTTP.post_form(uri, {'data'=> 'win'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment