Created
June 4, 2010 10:14
-
-
Save gravis/425250 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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