Skip to content

Instantly share code, notes, and snippets.

@truekonrads
Created June 15, 2012 09:22
Show Gist options
  • Select an option

  • Save truekonrads/2935578 to your computer and use it in GitHub Desktop.

Select an option

Save truekonrads/2935578 to your computer and use it in GitHub Desktop.
Invoke Typhoeus with proxy and authentication
require 'typhoeus'
e=Typhoeus::Easy.new
e.url="http://konrads.smelkovs.com/ip/"
e.proxy = :server => "1.2.3.4:80"
e.proxy_auth=:username => "user", :password => 'password'
e.perform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment