HTTParty is a Ruby library for making HTTP requests and integrates easily with Statica:


The following code snippet will print out one of your Static IP addresses.

require 'httparty'


options = {http_proxyaddr:,http_proxyport:proxy.port, http_proxyuser:proxy.user, http_proxypass:proxy.password}
response = HTTParty.get('',options)

puts response.body, response.code, response.message, response.headers.inspect


We have examples for other common libraries as well, but if you can't find what you are looking for just send us a support ticket and we'll get one sent to you.