Installation

When you sign up you will be provided with a unique username and password and a connection string that you can use when configuring your proxy service in your application:   

http://username:[email protected]:9293

   

All requests that you make via this proxy will appear to the destination server to originate from one of the two static IPs you will be assigned when you sign up.


We recommend you store the connection string in an environment variable STATICA_URL. If you have signed up via the add-ons platform on Heroku or cloudControl this variable will be automatically set in your production environment.


Integration

Statica will work with the standard http library but we recommend using the request library for ease of use.

 

var request = require('request');
var options = {
proxy: process.env.STATICA_URL,
url: 'http://ip.jsontest.com/',
headers: {
'User-Agent': 'node.js'
}
};

function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}

request(options, callback);

 

Other Libraries