This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')}); |
NewerOlder