Skip to content

Instantly share code, notes, and snippets.

View calderas's full-sized avatar
🎯
Focusing

edgar calderon calderas

🎯
Focusing
View GitHub Profile
@calderas
calderas / node-twitterstream-proxy.js
Created August 25, 2011 20:25
Node JS Twitter Stream behind a proxy
var user="your_user"
var password="your_password"
var proxy_host="your_proxy.com"
var proxy_port=80
var http = require('http'), sys = require('sys')
var proxy = http.createClient(proxy_port, proxy_host);
var request = proxy.request('GET', '/1/statuses/sample.json', { host: 'stream.twitter.com', Authorization:new Buffer(user+":"+password).toString('base64')});