Advertisement
Guest User

Untitled

a guest
May 21st, 2016
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Using typhoeus
  2.  
  3. options = {proxy: 'http://us.proxymesh.com:31280', proxyuserpwd: 'user:password'}
  4. req = Typhoeus::Request.new(url, options)
  5. req.run
  6.  
  7.  
  8. Using HTTParty
  9.  
  10. HTTParty.get(url, { http_proxyaddr: "us.proxymesh.com", http_proxyport: "31280", http_proxyuser: "user", http_proxypass: "password", :timeout => 3 })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement