LogoLogo
  • Welcome!
  • Proxies
    • Dedicated DataCenter Proxies
      • Intro
      • Session stickiness
    • Rotating Residential Proxies
      • Intro
      • Proxy parameters
        • Country
        • State
        • City
        • Session Stickiness
    • ISP Residential Proxies
      • Intro
      • Proxy parameters
        • Session Stickiness
        • Country
        • State
        • City
    • Shared DataCenter Proxies
      • Intro
      • Proxy parameters
        • Country
        • State
        • City
        • Session Stickiness
    • Integrations
      • How to rotate proxies in Python?
      • How to use GoProxies in Ruby?
      • How to connect to GoProxies proxy via SmartProxy?
      • How to connect to GoProxies proxy via SwitchyOmega?
      • How to connect to GoProxies proxy via Selenium?
      • How to connect to GoProxies via IP Burger extension?
      • How to connect to GoProxies via Puppeteer?
      • How to connect to GoProxies proxy via FoxyProxy?
    • Resellers API
      • How to login into GoProxies API and list your current sub-users?
      • How to create a sub-user via GoProxies API?
      • How to check usage traffic of the sub-user?
    • HTTP Error Response codes
    • FAQ
      • General Questions
        • What solutions do GoProxies offer?
        • Is there an option to purchase a custom proxy package?
        • Can you transfer my unused traffic to next month?
        • Does GoProxies have customer support?
        • Do you charge additional fees for the setup?
        • Can I cancel my subscription at any time?
      • Billing and Pricing
        • What are the GoProxies pricing plans?
        • What payment methods do you accept?
      • Static Residential Proxies
        • Which locations GoProxies covers with Static Residential Proxies?
        • Do you offer a free trial for Static Residential Proxies?
      • Rotating Residential Proxies
        • What locations GoProxies covers with Rotating Residential Proxies?
        • What HTTP(s) ports do you allow access to?
        • Is it possible to rotate the Residential IP every request?
        • How many concurrent sessions can I make?
    • Contact Support
Powered by GitBook
On this page

Was this helpful?

  1. Proxies
  2. Integrations

How to use GoProxies in Ruby?

Using Ruby to Route Traffic Via GoProxies

In this guide, you'll learn how to utilize Ruby for sending traffic through GoProxies. Follow the steps below to efficiently manage your network traffic

Below you will find a straightforward example of sending a request through GoProxies in Ruby:

require 'uri'
require 'net/http'

uri = URI.parse('http://ipinfo.io')
proxy = Net::HTTP::Proxy('proxy.goproxies.com', 1080, 'customer-USERNAME-country-au', 'PASSWORD')

req = Net::HTTP::Get.new(uri)

result = proxy.start(uri.host, uri.port) do |http|
    http.request(req)
end

puts result.body

Congratulations! You have successfully sent a request through our proxy. To change the country, select a different country code in ISO 3166-1 alpha-2 format, like GB or DE.

PreviousHow to rotate proxies in Python?NextHow to connect to GoProxies proxy via SmartProxy?

Last updated 2 months ago

Was this helpful?