Ruby Proxy Configuration Examples

This article describes options for configuring the Proxy Host with Basic Authentication in the Ruby scripting language for an HTTP client.

For Ruby HTTP clients, if you are using IP authentication, you can leave out the username:password parts.

Here's an example from the Typhoeus library:

options = {proxy: 'http://PROXYHOST:PORT', proxyuserpwd: 'USERNAME:PASSWORD'}
req = Typhoeus::Request.new(url, options)
req.run

Still need help? Contact Us Contact Us