I’m using Rails 4.2.7. I have the following code that uses Net::HTTP to get a web page
http = Net::HTTP.new(host, 443)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
path = '/'
resp, data = http.get(path, nil)
What I want to do is programmatically anonymize my IP address when I make the above request, similar to what is done in those TOR browsers. Is there some way to route this through a TOR browser and get the response programmatically? That sounds really complicated and I’m thinking there is a simpler solution but I float this out there to the group.