Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using typhoeus
- options = {proxy: 'http://us.proxymesh.com:31280', proxyuserpwd: 'user:password'}
- req = Typhoeus::Request.new(url, options)
- req.run
- Using HTTParty
- 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