If you want to sent typhoeus request via proxy you can do something like this.
Typhoeus::Request.new("www.example.com",:proxy => "http://#{proxy_ip}:#{proxy_port}")
Also if you need proxy authentication you can use :proxy_username and :proxy_password options for username and password respectively.
Typhoeus::Request.new("www.example.com",:proxy => "http://#{proxy_ip}:#{proxy_port}")
Also if you need proxy authentication you can use :proxy_username and :proxy_password options for username and password respectively.
No comments:
Post a Comment