Skip to content

Instantly share code, notes, and snippets.

@gravis
Created June 4, 2010 10:14
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 gravis/425250 to your computer and use it in GitHub Desktop.
Save gravis/425250 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
# Typhoeus::Multi bug demo
require 'rubygems'
require 'typhoeus'
e = Typhoeus::Easy.new
e.url= "https://www.google.com"
e.method = :post
e.headers = {:TEST => "TEST"}
e.verbose = 1
e.perform
e2 = Typhoeus::Easy.new
e2.url= "https://www.google.com"
e2.method = :post
e2.headers = {:TEST => "TEST"}
e2.verbose = 1
multi.add e2
multi.perform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment